History: Profile_r_test9_rcharts_leaflet
Source of version: 1
- «
- »
Copy to clipboard
{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') } map3 <- Leaflet$new() map3$setView(c(51.505, -0.09), zoom = 13) map3$marker(c(51.5, -0.09), bindPopup = "<p> Hi. I am a popup </p>") map3$marker(c(51.495, -0.083), bindPopup = "<p> Hi. I am another popup </p>") #map3$print("chart7") map3$LIB[2] <- "http://{{domain}}/rcharts_libraries/leaflet" map3$save("map3.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}}/map3.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}}/map3.html"}