Description Usage Arguments Details Examples
View source: R/feedback_plotting.R
Pass in a a variable and get a waffle plot. Useful to display simple counts or if the variable has different values, a square pie chart. If the variable has a length that makes the individual squares hard to see, consider showing hundreds, thousands etc.
1 2 3 4 |
x |
a variable with not too many unique values |
symbol |
pass a unicode symbol from FontAwesome here. Defaults to a square with rounded edges |
rows |
defaults to the rounded up square root of the number of values |
cols |
defaults to the rounded down square root of the number of values |
drop_shadow_h |
horizontal offset of the drop shadow, tinker with this to get a proper shadow effect |
drop_shadow_v |
vertical offset of the drop shadow |
font_family |
defaults to FontAwesome |
font_face |
defaults to Regular |
font_size |
defaults to round(140/sqrt(length(x))) |
This functions is like waffle_plot but it allows you to specify custom symbols from FontAwesome. Copypaste them from here: http://fontawesome.io/cheatsheet
To avoid the Hermann grid illusion, don't use dark colours.
1 2 3 4 | ## Not run:
qplot_waffle_text(rep(1:2,each=30), rows = 5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.