geom_waffle | R Documentation |
Create a waffle layer
geom_waffle( mapping = NULL, data = NULL, stat = "identity", position = "identity", tile_shape = c("square", "circle"), ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE )
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
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. |
tile_shape |
Control the shape of the waffle tiles. One of either c("square", "circle") |
... |
Other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
ggplot(data = waffle_iron(mpg, aes_d(group = class)), aes(x, y, fill = group)) + geom_waffle() + coord_equal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.