geom_xsidebar: geom_*sidebar: Plot a sidebar along an axis

Description Usage Arguments Aesthetics

View source: R/geom-sidebar.r

Description

geom_*sidebar: Plot a sidebar along an axis

Usage

 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
)

Arguments

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.

Aesthetics

Required aesthetics are in bold.


jtlandis/ggsidebar documentation built on Nov. 24, 2020, 7:22 p.m.