Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Last active December 31, 2015 23:59
Show Gist options
  • Save ramnathv/8063480 to your computer and use it in GitHub Desktop.
Save ramnathv/8063480 to your computer and use it in GitHub Desktop.
library(rCharts)
rPlot(mpg ~ wt, data = mtcars, type = 'point')
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
[
{"title": "Example 1: Polychart", "file": "example1.R"},
{"title": "Example 2: NVD3", "file": "example2.R"}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment