FishLover
2010-May-14 21:15 UTC
[R] Help with using plotmeans - how do I have two or more sets of data on one plot?
Hello I'm having trouble being able to plot more than one set of data using the plotmeans function. Plotmeans is where you can plot means and standard errors easily. Here is part of my code plotmeans(Mmeans ~ Month, data=BW.hydat.05HG001, n.label=FALSE)#one set of data par(new=TRUE) plotmeans(Mmeans ~ Month, data=Mouth.hydat.05HH001, col="red")#the second set of data Basically I want to show more than one set of data on the same graph, same axis etc.. The par() function in this code doesn't work because it literally overlays it and you get the y-axis all jumbled up. I know that you can supress axis in one of the datasets but then the second set of data doesn't actually have the right values. I also can't use the lines or points function since the graph shows means. Thanks in advance -- View this message in context: http://r.789695.n4.nabble.com/Help-with-using-plotmeans-how-do-I-have-two-or-more-sets-of-data-on-one-plot-tp2217247p2217247.html Sent from the R help mailing list archive at Nabble.com.
Seemingly Similar Threads
- Why don't formulas that work for lm() work for plotmeans?
- Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se")
- plot separate groups with plotmeans()
- introducing jitter in overlapping graphs using ggplots (plotmeans). Also sciplot.
- plotmeans