i am trying to plot mean, standard deviation, and standard error of mean of my data
Data table look like
freq mean-minP mean-correctedminP sd-minP sd-correctedminP se-minP se-correctedminP
0.04 0.002253326 0.2570858 0.00281535 0.2299418 5.365941e-06 0.0004382595
0.06 0.002215208 0.2555567 0.002724357 0.2261158 4.193085e-06 0.0003480172
0.08 0.002229885 0.2580928 0.002688148 0.2257434 4.788916e-06 0.0004021602
0.10 0.002259921 0.2614918 0.002692339 0.2255382 5.17569e-06 0.0004335695
0.12 0.002252171 0.2615271 0.00266768 0.2239421 5.341592e-06 0.0004484073
0.14 0.002279967 0.2620723 0.002773566 0.226358 5.726879e-06 0.0004673856
0.16 0.00227563 0.2634223 0.002696895 0.2248959 5.812342e-06 0.000484695
0.18 0.002325724 0.2680895 0.002727271 0.226968 6.08316e-06 0.0005062506
0.20 0.002338423 0.2698884 0.002716278 0.2267581 6.19585e-06 0.0005172369
Code is
library(ggplot2)
x = read.table("mean-sd-se.txt", header =T)
as.data.frame.matrix(x)
class(x)
jpeg('mean-minP.jpg')
ggplot(x, aes(freq, mean.minP)) +
geom_point() +
geom_errorbar(aes(ymin = mean.minP - se.minP, ymax = mean.minP + se.minP))
dev.off()
jpeg('mean-correctedminP.jpg')
ggplot(x, aes(freq, mean.correctedminP )) +
geom_point() +
geom_errorbar(aes(ymin = mean.correctedminP - se.correctedminP, ymax = mean.correctedminP + se.correctedminP))
dev.off()
Third graph table is
freq ben-minP sd se
0.04 2.272638e-05 2.446807e-05 2.446807e-06
0.06 2.913836e-05 2.863156e-05 2.863156e-06
0.08 3.554738e-05 3.428234e-05 3.428234e-06
0.10 2.748583e-05 2.544388e-05 2.544388e-06
0.12 2.699006e-05 2.334158e-05 2.334158e-06
0.14 2.688554e-05 2.607751e-05 2.607751e-06
0.16 2.791795e-05 2.749683e-05 2.749683e-06
0.18 3.163485e-05 3.127313e-05 3.127313e-06
0.20 2.905028e-05 3.089178e-05 3.089178e-06
I want to put all these plots into one with different colors