Loading...
 

Profile_r_test9_rcharts_nvd3

Multibar chart


{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') }

hair_eye_male <- subset(as.data.frame(HairEyeColor), Sex == "Male")
n1 <- nPlot(Freq ~ Hair, group = "Eye", data = hair_eye_male, type = "multiBarChart")
  1. n1$print("chart3")

n1$LIB2 <- "http://{{domain}}/rcharts_libraries/nvd3"
n1$save("n1.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}}/n1.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.



Scatter Plot

{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') }

data(iris)
sepal <- iris, c(1:2, 5)

n2 <- nPlot(Sepal.Length ~ Sepal.Width, data = sepal, type = "scatterChart",
group = "Species")
n2$xAxis(axisLabel = "Sepal.Width") # add x axis label
n2$yAxis(axisLabel = "Sepal.Length")
  1. n2$print("nvd3Scatter")

n2$LIB2 <- "http://{{domain}}/rcharts_libraries/nvd3"
n2$save("n2.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}}/n2.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.