[R] Plotting shaded areas

Jim Lemon jim at bitwrit.com.au
Thu Aug 13 13:28:42 CEST 2009

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.


More information about the R-help mailing list