| geom_barh {ggstance} | R Documentation |
Bars, rectangles with bases on y-axis
Description
Horizontal version of geom_bar().
Usage
geom_barh(
mapping = NULL,
data = NULL,
stat = "counth",
position = "stackv",
...,
width = NULL,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
geom_colh(
mapping = NULL,
data = NULL,
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 |
stat |
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
geom_barh() understands the following aesthetics (required aesthetics are in bold):
-
x -
y -
alpha -
colour -
fill -
group -
linetype -
size
Learn more about setting these aesthetics in vignette("ggplot2-specs").
geom_colh() understands the following aesthetics (required aesthetics are in bold):
-
y -
x -
alpha -
colour -
fill -
group -
linetype -
size
Learn more about setting these aesthetics in vignette("ggplot2-specs").