I want to make an interactive bar chart of one variable where the bars are filled in by a second variable and faceted by a third variable. I would like to embed it in a slidify deck. I am guessing rCharts is the right tool for this (or would another package be better?).
Here is my data:
df <- data.frame(numbers = rep(1:3, 30),
letter = sample(c("A", "B", "C", "D"), 90, replace = TRUE),
status = sample(c("good", "bad", "ugly"), 90, replace = TRUE))
I can do this in ggplot2, but I can't make it interactive. I can make this graph (sorry, can't embed):
ggplot(df, aes(letter, fill = status)) + geom_bar() + facet_wrap(.~numbers)

Ideally I would be able to select and deselect "status" and see the bars change. I've played with the bar chart code on this page but can't make it work. Is this functionality possible?
Maybe this is what you're after in ggplot? I couldn't tell if you wanted a ggplots solution or rCharts solution. So this is ggplot.
Add position = "dodge" to your geom_bar argument will mimic the other graph you linked to
Alternatively, you could "unselect" status, and fill by number -- note, had to make this a factor in this example:
Or omit and keep grayscale