On Mon, Oct 3, 2011 at 12:24 PM, Thomas Adams <thomas.ad...@noaa.gov> wrote: > I'm interested in creating a graphic -like- this: > > c <- ggplot(mtcars, aes(qsec, wt)) > c + geom_point() + stat_smooth(fill="blue", colour="darkblue", size=2, alpha > = 0.2) > > but I need to show 2 sets of bands (with different shading) using 5%, 25%, > 75%, 95% limits that I specify and where the heavy blue line is the median. > I don't understand how to do this with ggplot2.
Exactly what sort of limits do you want? It sounds like maybe you are looking for smoothed quantile regression. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ ______________________________________________ R-help@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.