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
2 answers

Passing unquoted javascript to Highcharts using toJSON

Using shiny and rCharts to create a dashboard app, I need to pass raw javascript (not a string) to the Highcharts object. Given this list series <- list(data = list(c(0, 0), c(100, 0), c(100, 100)), type = 'polygon', …
2
votes
1 answer

Unclear columns of googleVis Regions Dataset

What does the 3rd and 4th column( Val & Fac resp) in Regions data set signifies and how are those values obtained?
2
votes
2 answers

Export the graph generated by rCharts in shiny application

I want to be able to export the charts generated in my shiny application using rCharts to Image and PDF formats. Is there any provision in the rCharts library for that? I have earlier used ggvis, It gives an option for resizing the chart in the…
Megh Vidani
  • 635
  • 1
  • 7
  • 22
2
votes
1 answer

rCharts nvd3 facets not working

I'm trying to produce multiple charts based on different values of a specific variable in rCharts, ideally using NVD3 (nPlot). I believe this should be implementable using facets. However, I am unable to even get the example provided by rCharts to…
2
votes
1 answer

Error in lattice::latticeParseFormula(x, data = data) : model must be a formula object

I tried to use rChart's rNVD3 package's discrete bar plot instead of the same old ggplot2. But it's requiring some formula argument as a first argument. I've not used lattice package and I don't know how to create one. Here's my data frame: df <-…
Solomon AathiRaj
  • 119
  • 1
  • 10
2
votes
0 answers

r - rCharts plots some data frames but not others

Using library(rCharts), and the exact same plotting code, why do some of these data.frames get plotted, and some don't? ## Install: # library(devtools); install_github('ramnathv/rCharts'); library(rCharts) ## Successful plot set.seed(1) df <-…
tospig
  • 7,762
  • 14
  • 40
  • 79
2
votes
1 answer

Adding zero valued entries so that all groups have entries for the same items

I'm trying to use Rcharts to create a stacked bar chart across a number of recorded regions (stacking separate group values on top of each other). The data is in a format similar to below. Region | Group | Value ---------------------- USA | A …
E Keith
  • 274
  • 4
  • 11
2
votes
0 answers

rCharts to Wordpress using knit2wp

I have been trying to publish an rChart into my blog using the knit2wp function. However, locally I can get the chart to render but when I publish it the chart becomes just text... I have a Rmd file that goes like this: library(rCharts) r1 <-…
2
votes
1 answer

Heat map in Shiny with rCharts

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…
user4601931
  • 4,982
  • 5
  • 30
  • 42
2
votes
1 answer

Shiny dashboard multiple charts - overlapping

I am using shiny dashboard package for my app. while trying to display 2 plots on the same page (each one in a box) they are overlapping. Also tried to use fluidRow for each plot - but still it seems both plot are connected to the same box (and…
Tamar
  • 23
  • 1
  • 6
2
votes
0 answers

saving / printing to html or pdf for shiny apps with r charts

I made a shiny app with rcharts, and now I'd like to be able to save the reports generated - I've found that printing shiny apps to pdf or html generally is a pretty good way to save reports generated with shiny apps. This way I get to see the whole…
md1630
  • 841
  • 1
  • 10
  • 28
2
votes
1 answer

rcharts nvd3 % format - precision to one tenth percent

I'm using lineChart from Rcharts nvd3, and I'd like to format the y values as a percent precise to one tenth of a %. I can format as a percent as below, but when I hover over the points, it only shows a % precise to 1%, I can't get it to be precise…
md1630
  • 841
  • 1
  • 10
  • 28
2
votes
0 answers

How to display rCharts plots in a Jupyter notebooks?

I am trying to render a rCharts plot in a jupyter notebook. The code snippet runs without any error but the output is not displayed. Sample code snippet, require(rCharts) r1 <- rPlot(mpg ~ wt | am + vs, data = mtcars, type = "point", color =…
Avinash
  • 2,521
  • 4
  • 21
  • 35
2
votes
1 answer

Using global data in High Charts point click custom function in R Shiny

I am trying to show a different table or plot in a different div when a bar on a a bar plot is clicked. I have come this far. server.R library(shiny) shinyServer(function(input,output,session) { custom_data = # a data frame in R …
Shiva
  • 789
  • 6
  • 15
2
votes
0 answers

rCharts highcharts legend and export button above chart

All I am trying to do is to have my legend and export button above my chart area with fixed y axis. But this has proven difficult. It overlays over the chart area as seen below. Here is my R code library(rCharts) df <- data.frame(month=rep(c('Jan',…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113