View source: R/geom-serialaxes-quantile.R
geom_serialaxes_quantile | R Documentation |
Draw a quantile layer for serial axes coordinate.
Don't be confused with geom_quantile()
which is a quantile regression. See examples.
geom_serialaxes_quantile( mapping = NULL, data = NULL, stat = "serialaxes", position = "identity", ..., quantiles = seq(0, 1, 0.25), axes.sequence = character(0L), merge = TRUE, na.rm = FALSE, orientation = NA, show.legend = NA, inherit.aes = TRUE ) stat_serialaxes_quantile( mapping = NULL, data = NULL, geom = "serialaxes_quantile", position = "identity", ..., axes.sequence = character(0L), merge = TRUE, quantiles = seq(0, 1, 0.25), scaling = c("data", "variable", "observation", "none"), axes.position = NULL, na.rm = FALSE, orientation = NA, show.legend = NA, inherit.aes = TRUE )
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this
layer, either as a |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
... |
Other arguments passed on to |
quantiles |
numeric vector of probabilities with values in [0,1]. (Values up to 2e-14 outside that range are accepted and moved to the nearby endpoint.) |
axes.sequence |
A vector to define the axes sequence. In serial axes coordinate, the sequence can be either
determined in |
merge |
Should |
na.rm |
If |
orientation |
The orientation of the layer. The default ( |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom |
The geometric object to use to display the data, either as a
|
scaling |
one of |
axes.position |
A numerical vector to determine the axes sequence position;
the length should be the same with the length of |
geom_density_
, geom_serialaxes
,
geom_serialaxes_density
, geom_serialaxes_hist
# lower quantile, median and upper quantile p <- ggplot(iris, mapping = aes(Sepal.Length = Sepal.Length, Sepal.Width = Sepal.Width, Petal.Length = Petal.Length, Petal.Width = Petal.Width)) + geom_serialaxes(stat = "dotProduct") + geom_serialaxes_quantile(stat = "dotProduct", quantiles = c(0.25, 0.5, 0.75), colour = c("red", "blue", "green")) p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.