History: Profile_r_test9_rcharts_nvd3
Source of version: 2 (current)
Copy to clipboard
!! Multibar chart {RR(echo="1" cacheby="pagename")} # 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") #n1$print("chart3") n1$LIB[2] <- "http://{{domain}}/rcharts_libraries/nvd3" n1$save("n1.html") {RR} {CODE()} {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"} {CODE} {iframe name="myChart1" width="850" height="500" align="middle" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="temp/cache/{{domainslash_if_multitiki}}R_{{page}}/n1.html"} !! Scatter Plot {RR(echo="1" cacheby="pagename")} # 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") #n2$print("nvd3Scatter") n2$LIB[2] <- "http://{{domain}}/rcharts_libraries/nvd3" n2$save("n2.html") {RR} {CODE()} {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"} {CODE} {iframe name="myChart1" width="850" height="500" align="middle" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="temp/cache/{{domainslash_if_multitiki}}R_{{page}}/n2.html"}