These are examples for rCharts. You can view an interactive version at
Last active
December 31, 2015 23:59
-
-
Save ramnathv/8064070 to your computer and use it in GitHub Desktop.
This file contains 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(rCharts) | |
rPlot(mpg ~ wt, data = mtcars, type = 'point') |
This file contains 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(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', 'red', '#594c26', 'green')) | |
p2 |
This file contains 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
data(economics, package = "ggplot2") | |
econ <- transform(economics, date = as.character(date)) | |
m1 <- mPlot(x = "date", y = c("psavert", "uempmed"), type = "Line", data = econ) | |
m1$set(pointSize = 0, lineWidth = 1) | |
m1 |
This file contains 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
[ | |
{"title": "Example 1: Polychart", "file": "example1.R"}, | |
{"title": "Example 2: NVD3", "file": "example2.R"}, | |
{"title": "Example 3: MorrisJS", "file": "example3.R"} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment