Hello, I'm currently using a simple plot to visualize some mean values. I'm having ~200 datapoints on the x-axis, each has 10 records. I'm currently plotting only the mean value of each of the datapoints. What I need is a way to visualize the quartiles/error/whatever of these points. I thought about boxplots, but I have to many points on the xaxis - it would be impossible to see anything. I though that it would be nice to have a "hull" around each line, indicate the width of the quartiles, visualized by a different background. It's like a very wide boxplot with a changing mean value... Is this possible with r? Does anyone know what I mean and/or has done this before? Thanks Arne
How about quantile regression? Have a look at http://had.co.nz/ggplot2/stat_quantile.html for some examples of what that might look like. Hadley On 6/16/07, Arne Brutschy <abr-r-project at xylon.de> wrote:> Hello, > > I'm currently using a simple plot to visualize some mean values. I'm > having ~200 datapoints on the x-axis, each has 10 records. I'm > currently plotting only the mean value of each of the datapoints. > > What I need is a way to visualize the quartiles/error/whatever of > these points. I thought about boxplots, but I have to many points on > the xaxis - it would be impossible to see anything. I though that it > would be nice to have a "hull" around each line, indicate the width of > the quartiles, visualized by a different background. It's like a very > wide boxplot with a changing mean value... > > Is this possible with r? Does anyone know what I mean and/or has done > this before? > > Thanks > Arne > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >
Hi Arne, You might also take a look at Prof. Harrell's function: require(Hmisc) ## req. library [note: also needs lattice] ?smedian.hilow Then look at: ?xYplot And, in particular, at: panel.xYplot(), sub "Usage:" This does what you want. ## Example; also look at Prof Harrell's examples xYplot(Murder ~ UrbanPop, data=USArrests, method='quantiles') HTH, Regards, Mark. Arne Brutschy-2 wrote:> > Hello, > > I'm currently using a simple plot to visualize some mean values. I'm > having ~200 datapoints on the x-axis, each has 10 records. I'm > currently plotting only the mean value of each of the datapoints. > > What I need is a way to visualize the quartiles/error/whatever of > these points. I thought about boxplots, but I have to many points on > the xaxis - it would be impossible to see anything. I though that it > would be nice to have a "hull" around each line, indicate the width of > the quartiles, visualized by a different background. It's like a very > wide boxplot with a changing mean value... > > Is this possible with r? Does anyone know what I mean and/or has done > this before? > > Thanks > Arne > > ______________________________________________ > R-help at stat.math.ethz.ch 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. > >-- View this message in context: http://www.nabble.com/Visualize-quartiles-of-plot-line-tf3932181.html#a11153111 Sent from the R help mailing list archive at Nabble.com.