geom_describe {plutor} | R Documentation |
Description values plot
Description
The describe geom is used to create description values plot, including center symbol and error symbol. The center symbol can be mean, median or other custom functions, the error symbol can be sd, quantile or other custom functions.
Usage
geom_describe(
mapping = NULL,
data = NULL,
stat = "describe",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
lineend = "round",
show_error = TRUE,
center_symbol = "bar",
center_width = 0.3,
error_width = 0.2,
center_func = mean,
low_func = function(x, na.rm) {
mean(x, na.rm = na.rm) - sd(x, na.rm = na.rm)
},
high_func = function(x, na.rm) {
mean(x, na.rm = na.rm) + sd(x, na.rm = na.rm)
},
...
)
Arguments
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. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
lineend |
Line end style (round, butt, square). |
show_error |
show error symbol |
center_symbol |
one of |
center_width |
if |
error_width |
the width of the error bar |
center_func |
the center function, |
low_func |
the low error function, |
high_func |
the high error function, |
... |
Other arguments passed on to |
Value
ggplot
object