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
4
votes
1 answer

Display multiple time series with rCharts hPlot

Using a simple data frame to illustrate this problem: df <- data.frame(x=c(1,2,3), y1=c(1,2,3), y2=c(3,4,5)) Single time series plot is easy: hPlot(y="y1", x="x", data=df) Cannot figure out how to plot both y1 and y2 together. Tried this but it…
Anthony
  • 1,513
  • 11
  • 17
4
votes
2 answers

rCharts - conflict between leaflet and nvd3 in Shiny

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…
user3193920
  • 235
  • 2
  • 10
4
votes
1 answer

Show properly x labels with rCharts and dimplejs

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…
Victorp
  • 13,636
  • 2
  • 51
  • 55
4
votes
1 answer

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

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…
719016
  • 9,922
  • 20
  • 85
  • 158
4
votes
2 answers

rPlot tooltip problems

I have a simple example using tooltips with rCharts that doesn't seem to work: set.seed(1) test <- data.frame(x = rnorm(100), y = rnorm(100)) rPlot(y ~ x, data = test, type = 'point', tooltip = "function(item){return item.x + '\n' +…
topepo
  • 13,534
  • 3
  • 39
  • 52
4
votes
1 answer

rCharts Polychart: Adding horizontal or vertical lines to a plot

I'm having some trouble understanding how to customize graphs using the rPlot function in the rCharts Package. Say I have the following code #Install rCharts if you do not already have it #This will require devtools, which can be downloaded from…
JClarke09
  • 141
  • 2
  • 9
4
votes
0 answers

Time series in rHighchart date format issues

I'd like to display a time series as a highchart interactive graphic. However, in the following R scrip the dates are not displayed correctly all. The numerical value for the date is cut after five digits, making them appear all on the same day and…
B-leR
  • 428
  • 4
  • 7
4
votes
0 answers

R Shiny rCharts Morris - rChart is not displaying (under particular circumstances)

I came across a problem while using rCharts in my Shiny application. I generate dynamically 1-3 tabPanels (depending on the user selection) and in each of them one plot is rendered. Plot may be of two types: simple (with graphics libary) or rCharts…
Marta Karas
  • 4,967
  • 10
  • 47
  • 77
4
votes
0 answers

Embedding rCharts graph into slidify slide deck

I am still trying to get a graph that I have produced using rCharts into a slidify slide deck. I have tried copying the script that rCharts produces into slidify's .Rmd file but all I get is an empty slide. Here is the .Rmd file: --- title :…
user1389960
  • 433
  • 4
  • 11
4
votes
1 answer

change height attributes of graph produced with rCharts for use with rshiny

I am using rCharts to implement an interactive graph in rshiny. I am using the morris library Here is a minimal example of my problem: ## ui.R require(rCharts) shinyUI(pageWithSidebar( headerPanel("rCharts: Interactive Charts from R using…
user1609452
  • 4,406
  • 1
  • 15
  • 20
4
votes
1 answer

rCharts rNVD3 tooltip customisation

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…
Joe
  • 1,455
  • 2
  • 19
  • 36
4
votes
1 answer

2 Knitr/R Markdown/Rstudio issues: Highcharts and Morris.js

I'm presently trying to replicate a few different types of rCharts using my own data. The first is a HighCharts graph with the following code: ````{r} setwd("C:/Users/ypetscher/Dropbox/R fun") blah<-read.csv("g8a.csv")` …
3
votes
1 answer

rCharts dplot - Mapping colour to specific groups

We are using dplot in rCharts (using the dimple library) to try to create a bubble chart in R Shiny. This is all working well but we are having trouble assigning specific colours to specific bubbles (or "Channel" in the code below). We have managed…
3
votes
2 answers

R create interactive plot with slider which width could be changed like in Google Finance (sizeable time-window)

R create interactive plot with slider which width could be changed, example below, I'm searching in ggvis R package, but other are also welcome :
Qbik
  • 5,885
  • 14
  • 62
  • 93
3
votes
1 answer

rCharts: plot is working fine in RStudio but empty in shiny app

Using the code below library(shiny) library(rCharts) hair_eye_male <- subset(as.data.frame(HairEyeColor), Sex == "Male") n1 <- nPlot(Freq ~ Hair, group = "Eye", data = hair_eye_male, type =…
shiny
  • 3,380
  • 9
  • 42
  • 79