This function that transforms the waffle::waffle()
.
It displays the proportions in the legend text.
1 | prop_waffle(x, rounding = 1, ...)
|
1 2 3 | x <- c("Apple" = 1, "Banana" = 2, "Watermelon" = 3)
prop_waffle(x, 1, 4, size = 1)
prop_waffle(x, 1, 4, size = 1, colors = ky_colors(3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.