stat_counth {ggstance} | R Documentation |
Horizontal counting.
Description
Horizontal version of stat_count
().
Usage
stat_counth(
mapping = NULL,
data = NULL,
geom = "barh",
position = "stackv",
...,
width = NULL,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
Arguments
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
geom |
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 |
width |
Bar width. By default, set to 90% of the resolution of the data. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
Aesthetics
stat_counth()
understands the following aesthetics (required aesthetics are in bold):
-
y
-
group
-
weight
-
x
Learn more about setting these aesthetics in vignette("ggplot2-specs")
.