[R] Visualize quartiles of plot line
Mark Difford
mark_difford at yahoo.co.uk
Sat Jun 16 13:07:07 CEST 2007
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.
More information about the R-help
mailing list