Loading...
 

Profile_r_test9_rcharts_polychart

{RR(echo="1" cacheby="pagename")}
  1. Testing rCharts from http://ramnathv.github.io/rCharts/
if(!require(devtools)){ install.packages("devtools", repos="http://ftp.heanet.ie/mirrors/cran.r-project.org/") }
require('devtools', quietly = TRUE )
if(!require(rCharts)){ install_github('rCharts', 'ramnathv') }

    1. Example 1 Facetted Scatterplot
names(iris) = gsub("\\.", "", names(iris))
ex1 <- rPlot(SepalLength ~ SepalWidth | Species, data = iris, color = 'Species', type = 'point')
ex1$LIB2 <- "http://{{domain}}/rcharts_libraries/polycharts"
ex1$save("ex1.html")
{RR}

{iframe name="myChart" width="850" height="500" align="middle" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="temp/cache/{{domainslash_if_multitiki}}R_{{page}}/ex1.html"}


Plugin execution pending approval

This plugin was recently added or modified. Until an editor of the site validates the parameters, execution will not be possible.



{RR(echo="1" cacheby="pagename")}
require('devtools', quietly = TRUE )
require('rCharts', quietly = TRUE )
    1. Example 2 Facetted Barplot
  1. newgraph
hair_eye = as.data.frame(HairEyeColor)
ex2 <- rPlot(Freq ~ Hair | Eye, color = 'Eye', data = hair_eye, type = 'bar')
ex2$LIB2 <- "http://{{domain}}/rcharts_libraries/polycharts"
ex2$save("ex2.html")
{RR}

{iframe name="myChart" width="850" height="500" align="middle" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="temp/cache/{{domainslash_if_multitiki}}R_{{page}}/ex2.html"}


Plugin execution pending approval

This plugin was recently added or modified. Until an editor of the site validates the parameters, execution will not be possible.



{RR(echo="1" cacheby="pagename")}
require('devtools', quietly = TRUE )
require('rCharts', quietly = TRUE )
    1. Example 3: Polychart
  1. newgraph
ex3 <- rPlot(mpg ~ wt | am + vs, data = mtcars, type = "point", color = "gear")
ex3$LIB2 <- "http://{{domain}}/rcharts_libraries/polycharts"
ex3$save("ex3.html")
{RR}

{iframe name="myChart" width="850" height="500" align="middle" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="temp/cache/{{domainslash_if_multitiki}}R_{{page}}/ex3.html"}


Plugin execution pending approval

This plugin was recently added or modified. Until an editor of the site validates the parameters, execution will not be possible.