Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created July 15, 2014 06:19
Show Gist options
  • Save nassimhaddad/1b6c07143feca0ef825f to your computer and use it in GitHub Desktop.
Save nassimhaddad/1b6c07143feca0ef825f to your computer and use it in GitHub Desktop.
multiple densities in a chart with ggvis
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