waffle icon indicating copy to clipboard operation
waffle copied to clipboard

Accept labels

Open juanpide opened this issue 10 years ago • 0 comments

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)

juanpide avatar Nov 08 '15 17:11 juanpide