Description Usage Arguments Aesthetics
geom_*sidebar: Plot a sidebar along an axis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | geom_xsidebar(
mapping = NULL,
data = NULL,
stat = "count",
position = "stack",
...,
width = NULL,
na.rm = FALSE,
orientation = "x",
show.legend = NA,
inherit.aes = TRUE
)
geom_ysidebar(
mapping = NULL,
data = NULL,
stat = "count",
position = "stack",
...,
width = NULL,
na.rm = FALSE,
orientation = "y",
show.legend = NA,
inherit.aes = TRUE
)
|
mapping |
Set of aesthetic mappings reated by ['aes()'] or ['aes_()']. If specified and 'inherit.aes = TRUE', it will be combined with the default mapping at the top level of the plot. 'mapping' must be supplied in this layer if ther is no plot mapping. |
data |
The data to be displayed in this layer. If 'NULL', the default, then the data is inherited from the plot data as specified i nthe call to ['ggplot()']. |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
other arguments passed on to ['layer()']. These are often aesthetics, used to set an aesthetic to a fixed value, like 'color = "red"' or 'size = 3'. They may also be parameters to the paired geom/stat. |
na.rm |
If 'FALSE', the default, missing values are removed with a warning. If 'TRUE', missing values are silently removed. |
inherit.aes |
If 'FALSE', overrides the default aesthetics, rather than combining with them. |
Required aesthetics are in bold.
x
y
xfill Fill color of the xsidebar
yfill Fill color of the ysidebar
width specifies the width of each bar
height specifies the height of each bar
alpha Transparency level of 'xfill' or 'yfill' depending on which ['geom_*sidbar']
size size of the border line. –uneeded??
location Specifies where the sidebar should be placed. geom_xsidebar may specify either "bottom" or "top" and geom_ysidebar may specify either "left" or "right. "bottom" and "left" are defaults of geom_xsidebar and geom_ysidebar respecitively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.