forked from rarias/bscpkgs
Fix plot details
This commit is contained in:
parent
4beb069627
commit
7852d86a3f
@ -45,7 +45,7 @@ p = ggplot(data=D, aes(x=blocksize, y=tnorm)) +
|
|||||||
# Labels
|
# Labels
|
||||||
labs(x="Block size", y="Normalized time",
|
labs(x="Block size", y="Normalized time",
|
||||||
title="Nbody normalized time",
|
title="Nbody normalized time",
|
||||||
subtitle="@expResult@/data.csv") +
|
subtitle=input_file) +
|
||||||
|
|
||||||
# Center the title
|
# Center the title
|
||||||
#theme(plot.title = element_text(hjust = 0.5)) +
|
#theme(plot.title = element_text(hjust = 0.5)) +
|
||||||
@ -68,7 +68,7 @@ p = ggplot(data=D, aes(x=blocksize, y=tnorm)) +
|
|||||||
|
|
||||||
theme_bw() +
|
theme_bw() +
|
||||||
|
|
||||||
theme(plot.subtitle=element_text(size=10)) +
|
theme(plot.subtitle=element_text(size=8)) +
|
||||||
|
|
||||||
theme(legend.position = c(0.85, 0.85)) #+
|
theme(legend.position = c(0.85, 0.85)) #+
|
||||||
|
|
||||||
@ -90,8 +90,9 @@ p = ggplot(D, aes(x=blocksize, y=time, color=freeCpu)) +
|
|||||||
|
|
||||||
labs(x="Block size", y="Time (s)",
|
labs(x="Block size", y="Time (s)",
|
||||||
title="Nbody granularity",
|
title="Nbody granularity",
|
||||||
subtitle="@expResult@") +
|
subtitle=input_file) +
|
||||||
theme_bw() +
|
theme_bw() +
|
||||||
|
theme(plot.subtitle=element_text(size=8)) +
|
||||||
|
|
||||||
geom_point(shape=21, size=3) +
|
geom_point(shape=21, size=3) +
|
||||||
#scale_x_continuous(trans=log2_trans()) +
|
#scale_x_continuous(trans=log2_trans()) +
|
||||||
|
@ -59,7 +59,7 @@ p = ggplot(data=D, aes(x=blocksize, y=tnorm)) +
|
|||||||
linetype="dashed", color="red") +
|
linetype="dashed", color="red") +
|
||||||
|
|
||||||
# Draw boxplots
|
# Draw boxplots
|
||||||
geom_boxplot(aes(fill=freeCpu)) +
|
geom_boxplot(aes(fill=jemalloc)) +
|
||||||
|
|
||||||
# # Use log2 scale in x
|
# # Use log2 scale in x
|
||||||
# scale_x_continuous(trans=log2_trans(),
|
# scale_x_continuous(trans=log2_trans(),
|
||||||
@ -69,11 +69,12 @@ p = ggplot(data=D, aes(x=blocksize, y=tnorm)) +
|
|||||||
|
|
||||||
theme_bw() +
|
theme_bw() +
|
||||||
|
|
||||||
theme(plot.subtitle=element_text(size=10)) +
|
theme(plot.subtitle=element_text(size=8)) +
|
||||||
|
|
||||||
theme(legend.position = c(0.85, 0.85)) #+
|
theme(legend.position = c(0.85, 0.85)) #+
|
||||||
|
|
||||||
# Place each variant group in one separate plot
|
# Place each variant group in one separate plot
|
||||||
|
#facet_wrap(~jemalloc)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -86,12 +87,13 @@ dev.off()
|
|||||||
png("scatter.png", width=w*ppi, height=h*ppi, res=ppi)
|
png("scatter.png", width=w*ppi, height=h*ppi, res=ppi)
|
||||||
#
|
#
|
||||||
## Create the plot with the normalized time vs blocksize
|
## Create the plot with the normalized time vs blocksize
|
||||||
p = ggplot(D, aes(x=blocksize, y=time, color=freeCpu)) +
|
p = ggplot(D, aes(x=blocksize, y=time, color=jemalloc)) +
|
||||||
|
|
||||||
labs(x="Block size", y="Time (s)",
|
labs(x="Block size", y="Time (s)",
|
||||||
title="Nbody granularity",
|
title="Nbody granularity",
|
||||||
subtitle=input_file) +
|
subtitle=input_file) +
|
||||||
theme_bw() +
|
theme_bw() +
|
||||||
|
theme(plot.subtitle=element_text(size=8)) +
|
||||||
|
|
||||||
geom_point(shape=21, size=3) +
|
geom_point(shape=21, size=3) +
|
||||||
#scale_x_continuous(trans=log2_trans()) +
|
#scale_x_continuous(trans=log2_trans()) +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user