View source: R/geom-pictogram.R
geom_pictogram | R Documentation |
There are two special/critical aes()
mappings:
label
(so the geom knows which column to map the glyphs to)
values
(which column you're mapping the filling for the squares with)
geom_pictogram(
mapping = NULL,
data = NULL,
n_rows = 10,
make_proportional = FALSE,
flip = FALSE,
...,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
GeomPictogram
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
n_rows |
how many rows should there be in the waffle chart? default is 10 |
make_proportional |
compute proportions from the raw values? (i.e. each
value |
flip |
If |
... |
other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
An object of class GeomPictogram
(inherits from GeomText
, Geom
, ggproto
, gg
) of length 5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.