View source: R/stat-summaryh.R
stat_summaryh | R Documentation |
Horizontal version of stat_summary
().
stat_summaryh(
mapping = NULL,
data = NULL,
geom = "pointrangeh",
position = "identity",
...,
fun.data = NULL,
fun.x = NULL,
fun.xmax = NULL,
fun.xmin = NULL,
fun.args = list(),
na.rm = FALSE,
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 |
geom |
Use to override the default connection between
|
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to |
fun.data |
A function that is given the complete data and should
return a data frame with variables |
fun.xmin , fun.x , fun.xmax |
Alternatively, supply three individual functions that are each passed a vector of x's and should return a single number. |
fun.args |
Optional additional arguments passed on to the functions. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
stat_summaryh()
understands the following aesthetics (required aesthetics are in bold):
x
y
group
Learn more about setting these aesthetics in vignette("ggplot2-specs")
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.