rcharts

How to set highchart global options IN R

社会主义新天地 提交于 2019-12-01 12:32:45
问题 I see a lot of examples in javascript but I cannot find an example to do it in R Here is the api link: http://api.highcharts.com/highcharts#global I am trying to set "timezoneOffset" and I have tried many different ways. When I do this in R: highChart$global(timezoneOffset=-300) I do not get any warning or error, but it's not working. Thanks a lot for the help! Here is a piece of code: library(rCharts) highChart <- Highcharts$new() highChart$global(timezoneOffset=-300) highChart$chart

Chart not rendering with Shiny R and NVD3

旧街凉风 提交于 2019-12-01 11:56:09
I have been attempting to create a Shiny timeseries plot using NVD3 library. Am relatively new to R, Shiny and NVD3. The problem is that when I run the ShinyApp, no chart renders on the browser. Using chromes developer tools, I can see that the div for myChart is created and populated with data, but not understanding why I cannot see the chart itself. Would appreciate any and all help on this matter... My code is like so: #ui.R require(rCharts) shinyUI(pageWithSidebar( headerPanel("Population Trend By Age Group:"), sidebarPanel( selectInput(inputId = "agegrp", label = "Choose Agegroup",

Chart not rendering with Shiny R and NVD3

不打扰是莪最后的温柔 提交于 2019-12-01 11:35:15
问题 I have been attempting to create a Shiny timeseries plot using NVD3 library. Am relatively new to R, Shiny and NVD3. The problem is that when I run the ShinyApp, no chart renders on the browser. Using chromes developer tools, I can see that the div for myChart is created and populated with data, but not understanding why I cannot see the chart itself. Would appreciate any and all help on this matter... My code is like so: #ui.R require(rCharts) shinyUI(pageWithSidebar( headerPanel("Population

“ERROR: path[1]=”“: No such file or directory” when publishing Parallel Coordinates Chart with Shiny

我与影子孤独终老i 提交于 2019-12-01 10:29:22
问题 I have a problem that seems to be quiet common but for which I haven't found a solution yet: When trying to publish a webapp using rCharts Parcoords, I get this error: ERROR: path[1]="": No such file or directory And the strange thing is that the app runs perfectly well on my laptop... Below is a simple version/example of the code that I'm using. Please note that you need to have downloaded the parcoords library and put it into the file where you're working before you run the code. Its path

remove leaflet heatmap layer with rCharts and shiny

拟墨画扇 提交于 2019-12-01 08:39:17
I want to be able to let users see different heatmaps based on a parameter's choice in shiny, using rCharts and Leaflet. The first time the heatmap is displayed it looks great. All the other times the heat map is displayed as layers on top of the first one. How to reset the leaf map so that only the current layer / heat map is displayed? This sample code is based on the notorious Ramnath's Houston crime demo. library(shiny) library(rCharts) library(rjson) library(data.table) ## crimedt <- as.data.table(na.omit(ggmap::crime[,c("address","offense","lon","lat")])) crimedt <- crimedt[,offense:=as

remove leaflet heatmap layer with rCharts and shiny

元气小坏坏 提交于 2019-12-01 07:17:02
问题 I want to be able to let users see different heatmaps based on a parameter's choice in shiny, using rCharts and Leaflet. The first time the heatmap is displayed it looks great. All the other times the heat map is displayed as layers on top of the first one. How to reset the leaf map so that only the current layer / heat map is displayed? This sample code is based on the notorious Ramnath's Houston crime demo. library(shiny) library(rCharts) library(rjson) library(data.table) ## crimedt <- as

rCharts - conflict between leaflet and nvd3 in Shiny

无人久伴 提交于 2019-12-01 05:26:22
问题 I am trying to include in the same shiny page both a leaflet map and a nvd3 rCharts graph. When I do so, leaflet is no longer displaying the circles / POI I used to display on the map (while not including nvd3). I suspect it is a JS / CSS conflict as when I try to include them separately it works just nice. Once I launch "runapp" and look at the html code, I can see the only difference when including both leaflet and nvd3 are the libraries in use: <link href="nvd3/css/nv.d3.css" rel=

Are rCharts and DT compatible in rmarkdown?

蹲街弑〆低调 提交于 2019-11-30 23:11:37
问题 I am trying to create a document with rmarkdown that includes both plots from the rCharts package and a datatable using the DT library included in htmlwidgets. For some reason I cannot display both of them together. --- title: "Untitled" output: html_document --- ```{r, echo=FALSE} library(DT) library(rCharts) df<-data.frame(Name=c("a","Z","h","k","j"),Value=(sample(10^7,5))) datatable(df, filter = 'top', options = list( pageLength = 10,iDisplaylength=10, autoWidth = TRUE )) ``` ```{r,

rCharts nvd3 library force ticks

爷,独闯天下 提交于 2019-11-30 22:18:33
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$xAxis(tickFormat = "#! function (x) { ticklabels = ['0-1000', '1000-1500', '1500-1700', '1700-1820',

rCharts in shiny : width with 2 charts

China☆狼群 提交于 2019-11-30 22:14:10
I have an app with two Highcharts plot, when I start the app the width of the two plots are correct, but everytime I change the mean input, the width of the first plot is set to the width of the second, like this : When I start the app : When I change the input : My code to produce the app : library(rCharts) library(shiny) runApp(list( ui = fluidPage( title = "App title", titlePanel(strong("App title", style="color: steelblue")), sidebarLayout( sidebarPanel(width = 2, br()), mainPanel(width = 10, tabsetPanel( tabPanel("Tab 1", selectInput(inputId = "input_mean", label = "Mean : ", choices = c