geom_quantilegeom_quantile(mapping=NULL, data=NULL, stat="quantile", position="identity", ...)
Add quantile lines from a quantile regression
This page describes geom_quantile, see layer and qplot for how to create a complete plot from individual components.
This can be used as a continuous analogue of a geom_boxplot.
What do you think of the documentation? Please let me know by filling out this short online survey.
The following aesthetics can be used with geom_quantile. Aesthetics are mapped to variables in the data with the aes function: geom_quantile(aes(x = var)). Note that you do not need quotes around the variable name.
Scales control how the variable is mapped to the aesthetic and are listed after each aesthetic.
| Aesthetic | Default | Related scales |
|---|---|---|
| x | required | continuous, date, datetime, discrete |
| y | required | continuous, date, datetime, discrete |
| weight | 1 | |
| colour | #3366FF | brewer, gradient, gradient2, gradientn, grey, hue, identity, manual |
| size | 0.5 | identity, manual, size |
| linetype | 1 | identity, linetype, manual |
| alpha | 1 |
Layers are divided into groups by the group aesthetic. By default this is set to the interaction of all categorical variables present in the plot.
Parameters control the appearance of the geom. In addition to the parameters listed below (if any), any aesthetic can be used as a parameter, in which case it will override any aesthetic mapping.
arrow: NULLThis function returns a layer object.
> # See stat_quantile for examples
What do you think of the documentation? Please let me know by filling out this short online survey.