rcharts

Problems while reproducing Sankey chart example with d3_sankey

て烟熏妆下的殇ゞ 提交于 2019-12-22 04:49:13
问题 I am trying to reproduce simple example with rCharts library to plot sankey chart. I found this example from scratch and tried to reproduce it, however, I came up with some problems. Firstly I have tried running this code without nothing. Then I found out and realized, that I need d3_sankey in my computer. So, I have downloaded it from here and copied to C:\Users\adomas\Documents\R\win-library\3.0\rCharts\libraries\widgets\d3_sankey . Then I've tried that unchanged code once more and still

street address to geolocation lat/long

回眸只為那壹抹淺笑 提交于 2019-12-20 08:52:19
问题 I am considering rChart/LeafLet to create a shiny app for housing sales in my county. There are several hundred houses for sale at any given time. Want to map street address-to-geolocation (lat/long) for all and display them on a map. So, I am looking for a r package, service or database that can map street address to geolocation. 回答1: Here is a function based on Harvey's suggestion. It will look for the address and give the coordinates of the first result. Have a look at the structure of x

Heat map in Shiny with rCharts

旧时模样 提交于 2019-12-19 10:24:48
问题 I'm trying to do something similar to Ramnath's Houston crime data heat map demo, but I'm running into some issues. Namely, everything seems to be working except the whole heat map part of it. I have a dataset of crime information in Seattle; a snippet of the data follows: Offense Date Longitude Latitude 3 Assault 2015-10-02 -122.3809 47.66796 5 Assault 2015-10-03 -122.3269 47.63436 6 Assault 2015-10-04 -122.3342 47.57665 7 Weapon 2015-04-12 -122.2984 47.71930 8 Assault 2015-06-30 -122.3044

rCharts rNVD3 tooltip customisation

我只是一个虾纸丫 提交于 2019-12-19 09:16:11
问题 I have the following problem; I am using the rCharts wrapper around NVD3 to produce a simple line chart. I wish to modify the default tootip behavior. Using the NVD3 library I have been able to do this with the following code; .tooltipContent(function(key,x ,y,e,graph){ var idx = x.replace("s","") var thumbPath = 'snap_' + idx + '.png' return '<h3>' + key + '</h3>' + '<p>' + y + ' at ' + x + '</p>' + '<img src="'+ thumbPath+ '" alt="some_text">' }) This shows different thumbnails for

rCharts rNVD3 tooltip customisation

可紊 提交于 2019-12-19 09:16:06
问题 I have the following problem; I am using the rCharts wrapper around NVD3 to produce a simple line chart. I wish to modify the default tootip behavior. Using the NVD3 library I have been able to do this with the following code; .tooltipContent(function(key,x ,y,e,graph){ var idx = x.replace("s","") var thumbPath = 'snap_' + idx + '.png' return '<h3>' + key + '</h3>' + '<p>' + y + ' at ' + x + '</p>' + '<img src="'+ thumbPath+ '" alt="some_text">' }) This shows different thumbnails for

Fix label with rCharts in a shiny application

╄→尐↘猪︶ㄣ 提交于 2019-12-18 09:27:45
问题 I am creating a shiny application where I use the rCharts package, I have a problem with fixing labels above all the points of the graph. library(rCharts) age <- c(1:20) tall <- seq(0.5, 1.90, length = 20) name <- paste(letters[1:20], 1:20, sep = "") df <- data.frame(age = age, tall = tall, name = name) n1 <- nPlot(age ~ tall ,data = df, type = "scatterChart") n1$xAxis(axisLabel = "the age") n1$yAxis(axisLabel = "the tall", width = 50) n1$chart(tooltipContent = "#! function(key, x, y, e ){

rcharts nvd3 linechart with categorical x axis

妖精的绣舞 提交于 2019-12-14 02:19:09
问题 How can I a draw a linechart with rcharts using nvd3 and a categorical xaxis? What I'm trying to do would look with ggplot2 like this: library(ggplot2) dat <- data.frame(expand.grid(group = letters[1:3], x = letters[4:6]), y = rnorm(9)) ggplot(dat, aes(x = x, y = y, group = group, color = group)) + geom_line() I tried: library(rCharts) nPlot(y ~ x, group = 'group', data = dat, type = 'lineChart') I know that I could change x to a numeric variable, but then the xaxis labels would not be

Change line type in rCharts NVD3 (nPlot)

别等时光非礼了梦想. 提交于 2019-12-13 06:53:27
问题 I would like to have both solid and dashed lines for different levels of a factor (grouping variable) in a plot created with nPlot. Any suggestions? library(reshape2) library(ggplot2) library(rCharts) ecm <- reshape2::melt(economics[,c('date', 'uempmed', 'psavert')], id = 'date') p7 <- nPlot(value ~ date, group = 'variable', data = ecm, type = 'lineWithFocusChart') Final result: uempmed (solid line) and psavert (dashed line) Another option could be to change the thickness of the lines instead

R Shiny rCharts https server failing to load fonts.googleapis.com

喜欢而已 提交于 2019-12-12 15:11:01
问题 I got a shiny https server running, and I tried to use rCharts to plot a dTable so that I could do multi-column sort from dataTables (see https://stackoverflow.com/a/20956772/719016). What I could deduct from the Console output and this explanation (http://yoast.com/wordpress-ssl-setup/) is that this rCharts table is trying to load fonts from fonts.googleapis.com via the templates/default.html in shiny: [blocked] The page at 'https://my.server.com/shiny/shiny_dev/' was loaded over HTTPS, but

Show properly x labels with rCharts and dimplejs

怎甘沉沦 提交于 2019-12-12 11:51:14
问题 Hi I drew a graph with rCharts using the dimple javascript library, but I have some trouble with x labels which don't appear properly, I tried to use setBounds and setMargins without any success. Any help is welcome! Thx # my data (I put all because with less data there's no problem : x labels appears horizontally) structure(list(date = c("2014-01-01", "2014-01-02", "2014-01-03", "2014-01-04", "2014-01-05", "2014-01-06", "2014-01-07", "2014-01-08", "2014-01-09", "2014-01-10", "2014-01-11",