rcharts

Crosslet Package not Working

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 12:16:29
问题 https://github.com/ramnathv/rMaps I tried reproducing this example and the map isn't showing: library(rMaps) crosslet( x = "country", y = c("web_index", "universal_access", "impact_empowerment", "freedom_openness"), data = web_index ) Do I not have a package that will allow this to happen. I have installed the following: rCharts rMaps jsonlite 来源: https://stackoverflow.com/questions/32830566/crosslet-package-not-working

Shiny renders a responsive rCharts leaflet map once, but is blank if you change the input variable

 ̄綄美尐妖づ 提交于 2019-12-09 23:47:50
问题 I am producing a Shiny App that produces a leaflet (rCharts) map depending on which bus route you pick. Everything renders perfectly at first glimpse, but if you change the route number, an empty map appears (not even a tilelayer). This isn't specific to the route number. For example, I can pick any route number to produce the first plot successfully, whereas the second plot, regardless of route number, is blank. Has anyone come across this before? Is there a workaround? Here is a simple

rCharts nvd3 library force ticks

一笑奈何 提交于 2019-12-09 00:50:07
问题 I would like to force all tick marks and tick labels to appear along the axis in an rCharts nPlot from the nvd3 library. I have tried several approaches without success. This is the default behaviour: df <- data.frame(x = 1:13, y = rnorm(13)) library(rCharts) n <- nPlot(data = df, y ~ x, type = 'lineChart') n$yAxis(showMaxMin = FALSE) I would like to have all data in 1:13 show along the x axis. Ultimately, I have custom tickmarks I want to show equally-spaced with the following replacement: n

Interactive Choropleth in R of Sweden

好久不见. 提交于 2019-12-08 03:42:28
I'm trying to develop an interactive choropleth in a Shiny application in R. I've tried with plotly, gVis and rCharts, but still without any luck. I need to visualise it for Sweden right now, but I probably need it for other countries as well later on. This is what I have so far for gvisGeoMap: polygons <- readOGR("/ggshape", layer="SWE_adm1") polygons <- fortify(polygons, region="ID_1") data.poly <- as.data.frame(polygons) data.poly <- data.poly[,c(1,2)] data.poly.final <- data.frame(locationvar = paste(data.poly[,2],data.poly[,1], sep = ":"), numvar=1, hovervar="test") data.poly.final

sankey diagram with rCharts into shiny application. Color issue

喜欢而已 提交于 2019-12-08 02:58:24
问题 I am using rCharts to create a Sankey plot library(networkD3) library(rCharts) source1 = c('Proizvodnja okroglega lesa', 'Uvoz okroglega lesa', 'Poraba okroglega lesa', 'Poraba okroglega lesa', 'Zage','Zage','Zage', 'Zagan les','Uvoz zaganega lesa','Zagan les','Stanje','Stanje') target1=c('Poraba okroglega lesa','Poraba okroglega lesa', 'Izvoz okroglega lesa', 'Zage', 'Celuloza in plosce', 'Energetska raba','Zagan les', 'Lesni ostanki','Stanje','Stanje', 'Poraba zaganega lesa v Sloveniji',

Dimple dPlot color x-axis bar values in R

ぐ巨炮叔叔 提交于 2019-12-08 02:52:12
问题 I'm attempting to set manual colors for Dimple dPlot line values and having some trouble. d1 <- dPlot( x="Date", y="Count", groups = "Category", data = AB_DateCategory, type = 'line' ) d1$xAxis(orderRule = "Date") d1$yAxis(type = "addMeasureAxis") d1$xAxis( type = "addTimeAxis", inputFormat = "%Y-%m-%d", outputFormat = "%Y-%m-%d", ) The plot comes out looking great, but I would like to manually set the "Category" colors. Right now, it's set to the defaults and I cannot seem to find a method

Strange symbol “” appearing from rChart sankey output in Shiny

倾然丶 夕夏残阳落幕 提交于 2019-12-07 19:32:34
问题 Here's a screenshot of the output: The problem seems to be with the $setLib() function. As depending on the directory given, it gives a corresponding string output. Providing the correct directory produces the symbol  . For example providing a URL produces this output without the chart: Code - sankeyPlot$setLib("https://github.com/timelyportfolio/rCharts_d3_sankey") Output - https://github.com/timelyportfolio/rCharts_d3_sankey/layouts/chart.html Here's a sample code to replicate the error:

Add polygon to map R leaflet

自古美人都是妖i 提交于 2019-12-06 14:36:34
问题 I am trying to display a map with R using the rCharts package. I am starting simple and so I want to add a polygon to my map. But I have no clue how. Any ideas? addPolygon doesnt work. map <- Leaflet$new() map$tileLayer(provider = 'Stamen.TonerLite') map$setView(c(48.1, 16.7), zoom = 10) map$addPolygon( c(48.99831, 49.08815, 49.08815, 48.99831, 48.99831), c(13.42666, 13.42666, 13.56383, 13.56358, 13.42666), layerId=c("1"), options=opts, defaultOptions=opts) map 回答1: Add the polygon to your

R: rCharts and Shiny, charts won't show up when I run it

六月ゝ 毕业季﹏ 提交于 2019-12-06 12:07:04
问题 This seems like an ongoing question. I saw this posted a few times, I tried all the different solutions people offered. But nothing works for me. My chart won't show up when I run it :( Here is my ui.R ## ui.R require('rCharts') require('shiny') require("quantmod") require("TTR") require("stringr") require('lubridate') options(RCHART_LIB = 'polycharts') shinyUI(pageWithSidebar( headerPanel('test'), sidebarPanel(p('test') ), mainPanel( showOutput('graph',lib='polycharts') ) )) and here is my

Change Font Size on rCharts Sankey Diagram

一世执手 提交于 2019-12-06 09:21:49
I'm using the following code to create a Sankey Diagram using rCharts. I wish to increase the font size of the text printed on the Sankey Diagram. I can't find a manual to show me how to do this. Thoughts? rm(list = ls()) require(reshape) require(rCharts) require(rjson) target <- c('TMF', 'TMF', 'TMF','Evaporation','Mill Reclaim','Void Losses','Seepage') source <- c('Precipitation & Run Off','Slurry','Other','TMF','TMF','TMF','TMF') value <- c(638,1610,755,118,1430,466,2) x <- data.frame(target,source,value) sankeyPlot <- rCharts$new() sankeyPlot$set( data = x, nodeWidth = 10, nodePadding = 10