stat_binh | R Documentation |
Horizontal version of stat_bin
().
stat_binh( mapping = NULL, data = NULL, geom = "barh", position = "stackv", ..., binwidth = NULL, bins = NULL, center = NULL, boundary = NULL, closed = c("right", "left"), pad = FALSE, 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 |
binwidth |
The width of the bins. Can be specified as a numeric value
or as a function that calculates width from unscaled x. Here, "unscaled x"
refers to the original x values in the data, before application of any
scale transformation. When specifying a function along with a grouping
structure, the function will be called once per group.
The default is to use the number of bins in The bin width of a date variable is the number of days in each time; the bin width of a time variable is the number of seconds. |
bins |
Number of bins. Overridden by |
center |
bin position specifiers. Only one, |
boundary |
bin position specifiers. Only one, |
closed |
One of |
pad |
If |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
stat_binh()
understands the following aesthetics (required aesthetics are in bold):
y
group
x
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.