Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created December 18, 2013 16:28
Show Gist options
  • Save ramnathv/8025269 to your computer and use it in GitHub Desktop.
Save ramnathv/8025269 to your computer and use it in GitHub Desktop.
library(rCharts)
hair_eye = as.data.frame(HairEyeColor)
p2 <- nPlot(Freq ~ Hair, group = 'Eye', data = subset(hair_eye, Sex == "Female"), type = 'multiBarChart')
p2$chart(color = c('brown', 'blue', '#594c26', 'green'))
p2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment