Description Usage Arguments Examples
Create a waffle plot based on x
, y
, and optionally color
aspects.
1 2 |
g2 |
An object of class |
... |
Any option, aesthetic ( |
rows |
Number of rows. |
count |
Number of squares to use. |
waffle_size |
Size of squares. |
gap_ratio |
Gap between squares. |
data |
A |
inherit_asp |
Whether to inherit aspects from |
name |
Name of figure, useful to apply functions to specific figures. |
1 2 3 4 | fruits %>%
dplyr::mutate(value = value * 100) %>%
g2(asp(fruit, value)) %>%
fig_waffle(asp(color = fruit))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.