Created
July 15, 2014 06:19
-
-
Save nassimhaddad/1b6c07143feca0ef825f to your computer and use it in GitHub Desktop.
multiple densities in a chart with ggvis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggvis) | |
mtcars %>% ggvis(~mpg, fill=~as.factor(cyl)) %>% group_by(cyl) %>% layer_densities() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment