Hi I would like to plot the variation of some mean values with time, and have the standard deviation around the mean shaded on the plot. I could not find a way to have the shaded area on the curve with the default R commands, do I need a special package to do that? Or any idea of a way with the default R commands? Many thanks Thomas -- Thomas Loridan King's College email: thomas.loridan at kcl.ac.uk webpage:http://geography.kcl.ac.uk/micromet/TLoridan/index.htm
Thomas Loridan wrote:> Hi > > I would like to plot the variation of some mean values with time, > and have the standard deviation around the mean shaded on the plot. > I could not find a way to have the shaded area on the curve with the > default R commands, > do I need a special package to do that? > Or any idea of a way with the default R commands? > >Hi Thomas, You can do this with the dispersion function in the plotrix package. I hope to make this a bit easier to use in the next version of plotrix. Jim
May I ask, is it possible using plotrix to shade a group of variables differentially from the rest of a graph, eg so the output looks similar to this, where the nodes of open circles are my nodes of interest: http://r.789695.n4.nabble.com/file/n4459137/Screen_shot_2012-03-08_at_12.18.34.png Many thanks -- View this message in context: http://r.789695.n4.nabble.com/Plotting-shaded-areas-tp896558p4459137.html Sent from the R help mailing list archive at Nabble.com.
Perhaps ?polygon Michael On Fri, Mar 9, 2012 at 6:10 AM, aoife <aoife.m.doherty at gmail.com> wrote:> May I ask, is it possible using plotrix to shade a group of variables > differentially from the rest of a graph, eg so the output looks similar to > this, where the nodes of open circles are my nodes of interest: > > http://r.789695.n4.nabble.com/file/n4459137/Screen_shot_2012-03-08_at_12.18.34.png > > Many thanks > > -- > View this message in context: http://r.789695.n4.nabble.com/Plotting-shaded-areas-tp896558p4459137.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.