Questions tagged [rcharts]

A package designed to draw interactive graphics using R and JavaScript libraries.

rCharts is a new package designed to draw interactive graphics using R and javascript libraries.

494 questions
2
votes
1 answer

rCharts doesn't render the plot in shiny app

I am using following simple shiny app code snippet to plot the output in the main pannel. But it doesn't render the plot as expected. It shows nothing in the browser. But When i run only the mPlot portion, it displays the plot in RStudio correctly…
Karthick
  • 357
  • 4
  • 13
2
votes
1 answer

rCharts HighCharts how to color zones

I am running into a problem where I cannot color different sections of a graph I am working on. I want to change the color based on the threshold on the y axis. It seems easy from looking at the documentation from the high charts javascript, but it…
johnny838
  • 922
  • 7
  • 15
2
votes
0 answers

Create Sparkline chart in R

Is there a way to do something like this in R: http://www.highcharts.com/demo/sparkline I did not find a way to do it in rCharts. I would like to use it in a rmarkdown document and it would be nice to have some suggestions.
pfuhlert
  • 533
  • 4
  • 16
2
votes
0 answers

rChart graph not getting saved properly

This is my code: library(datasets) library(rCharts) haireye = as.data.frame(HairEyeColor) n1 = nPlot(Freq ~ Hair, group = 'Eye', type = 'multiBarChart', data = subset(haireye, Sex == 'Male')) n1$save('fig/n1.html', cdn = TRUE) cat('
ytk
  • 2,787
  • 4
  • 27
  • 42
2
votes
1 answer

Get (multiple) custom icons in leaflet from rCharts

I am looking to create a map using rCharts/Leaflet but I cannot figure out how to create custom icons and use them. Here is a solution, but I do not get it to work: https://github.com/ramnathv/rCharts/issues/301 L1$geoJson(toGeoJSON(data_), …
pfuhlert
  • 533
  • 4
  • 16
2
votes
2 answers

Change Font Size on rCharts Sankey Diagram

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 =…
Reuben Mathew
  • 598
  • 4
  • 22
2
votes
0 answers

rCharts NVD3 multiChart stacked Bars?

I wonder if it is possible to do a stacked barplot combined with a line in a multiChart plot from rCharts/NVD3 or similiar. A small example (copied from the demo section of rCharts on github could look like…
pfuhlert
  • 533
  • 4
  • 16
2
votes
1 answer

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

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…
cnmillar
  • 327
  • 2
  • 13
2
votes
2 answers

Highcharts 3D with rCharts

Highcharts 3D with rCharts Can rCharts be made to work with the 3D module of Highcharts? Below is an example of Highcharts 3D:…
cannin
  • 2,735
  • 2
  • 25
  • 32
2
votes
1 answer

knitr rchart datatable dtable does not to render

First, excuse my english, second i've read: rChart in R Markdown doesn't render 2 Knitr/R Markdown/Rstudio issues: Highcharts and Morris.js and doing that, I still have problems I install rCharts doing Install…
2
votes
2 answers

Custom legend in rCharts (highcharts)

I have a dataframe that looks like: ## Data df <- data.frame(label = c("A", "B", "C", "D"), color = c("red", "red", "blue", "green"), y = c(10, 11, 12, 13)) "A" and "B" are part of the same category, while "C"…
Optimus
  • 1,354
  • 1
  • 21
  • 40
2
votes
1 answer

Using percent width for Rcharts

I was wondering how to set the width of an rChart using % as opposed to px. I noticed in the source code that it defaults to pixels. I'm trying to use it in a shiny app, and fixed with charts seem to be an issue as they don't scale with the rest of…
Green788
  • 31
  • 3
2
votes
0 answers

Scatterplots using rCharts, polychart.js, and Shiny

I'm trying to make a shiny app with a scatterplot and I am getting the error" Uncaught DefinitionError: Bad specification polychart2.standalone.js:263 I've read that using renderchart2 will fix this but I still get the same error, I am using…
tkdkop
  • 119
  • 1
  • 6
2
votes
1 answer

R: How to plot statistic functions using rCharts

I would like to plot statistical distributions (like the normal distribution) using the rCharts package. I was able to plot it using curve or ggplot2 like these. Curve curve(dnorm, xlim=c(-10,10)) ggplot2 ggplot(data.frame(x=c(-10,10)), aes(x)) +…
ksmzn
  • 329
  • 1
  • 2
  • 9
2
votes
0 answers

print group name on clicking a data point in a hPlot chart with shiny

I have a shiny application that shows some charts using the highcharts library in rCharts. In some cases I have multiple graphs on a single chart which are created using the group option in hPlot. I wish to print all the parameters of a single data…
user2721827
  • 183
  • 1
  • 2
  • 7