waffle
waffle copied to clipboard
Accept labels
Hello
What if I have 2 columns, one with the labels and the other with the values?
for example
mydata <- data.frame(group=c("A", "B", "0", "AB"), FR=c(20, 32, 32, 16))
It would be great if waffle could create the graph using that group names and that FR directly. something like waffle(mydata$FR, mydata$group) Without needing to rewrite it as mydata <- c('A'=20, 'B'=32, '0'=32, 'AB'=16)