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

nvd3 scatterPlot with rCharts in R: Increase Font size of labels?

I am trying to increase the font size of the x and y axis in the plot created using NVD3 and rCharts. Here is my code for the plot. Any help is appreciated. n1 <-…
Koundy
  • 5,265
  • 3
  • 24
  • 37
3
votes
2 answers

label above points with rChart

I have a graph which i create with nPlot, i have two variable for X and Y axis and i want to add a third variable which i could see when I point my dots on the graph. For example, if a have X = age, Y = tall and Z = name, i want to be able to see…
Mostafa90
  • 1,674
  • 1
  • 21
  • 39
3
votes
0 answers

rChart in a function

I need help about this function, i try it with plot (R) and googleVis, it works perfectly; now i want to use rChart but when i launch the functions it returned me a simple grid with no points on it. VehiculeFunction <- function(data, gamme, absciss,…
3
votes
1 answer

Parallel Coordinates Plot in rCharts, how can I reproduce this chart?

I am trying to reproduce the code on the page: http://rcharts.io/parcoords/ cars <- read.csv('data/cars.csv') p1 <- rCharts$new() p1$field('lib', 'parcoords') p1$set(padding = list(top = 24, left = 0, bottom = 12, right = 200)) p1$set(data =…
qed
  • 22,298
  • 21
  • 125
  • 196
3
votes
1 answer

Add line to rChart (dimple) scatter plot

I would like to add horizontal line to a scatter in dimple.js created by rCharts on a predefined value of y. library(rCharts) df <- data.frame(a = rnorm(10), b = rnorm(10)) d1 <- dPlot(b~a, data = df, type = "bubble" …
jeroen81
  • 2,305
  • 5
  • 29
  • 41
3
votes
1 answer

How to download rCharts plots in shiny with downloadHandler

In shiny apps ggplot2 graphs can easily be downloaded based on the downloadHandler function. Is it possible to download the javascript visualisations that are produced by means of rCharts in a similar way? If yes, what is the best approach?
Jonas Tundo
  • 6,137
  • 2
  • 35
  • 45
3
votes
1 answer

rCharts morris title and axis labels

I am trying to persuade morris through rcharts to show graph title and axis labels (name of x and y axis). Without success. Example below. require(rCharts) tmp <- data.frame(a=c(1, 2, 3, 4, 5), b=c(0.1, 0.2, 0.3, 0.4, 0.5), …
Samo
  • 2,065
  • 20
  • 41
3
votes
1 answer

Plotting log-scale in R's rCharts using NVD3

I am using rCharts to create an interactive scatter plot in R. The following code works just fine: library(rCharts) test.df <- data.frame(x=sample(1:100,size=30,replace=T), y=sample(10:1000,size=30,replace=T), …
dojuba
  • 2,199
  • 1
  • 18
  • 16
3
votes
1 answer

rCharts - combine two rCharts like gvisMerge

Is there anyway, that I can combine two rCharts, like gvisMerge(obj1, obj2). I realized the rCharts objects are functions. Is there any way to combine R functions. I am using a shiny application in which I want to render two rCharts. output$chart =…
BigDataScientist
  • 1,045
  • 5
  • 17
  • 37
3
votes
1 answer

Turn off magnify on scatterChart in nvd3 using rCharts, shiny, nPlot

I have built a scatterChart in rCharts using nvd3.js and would like to turn off the magnify feature. Is this possible? Here is the code: output$riskChart <- renderChart({ risk <- nPlot(Return ~ Risk, group = 'Names', data = RiskData(),…
Joe Jansen
  • 741
  • 6
  • 9
3
votes
1 answer

Add highcharts plotband after render in R shiny/rcharts

I'm trying to replicate this (jsfiddle) highcharts functionality in an app running rCharts and shiny. I want a user event (changing a value in a text box) to add a plotband to an already rendered plot (or ideally remove previous/add a new one). I…
3
votes
1 answer

Highcharts Area Range Plot in rCharts

does anyone know if it's possible to create a area range style plot in rCharts (http://www.highcharts.com/demo/arearange-line)? My basic problem is the visualisation of a simple forecast scenario: set.seed(123134) y <- c(rnorm(20, 35, 2), rep(NA,…
CKre
  • 181
  • 2
  • 13
3
votes
1 answer

rCharts and rickshaw: slider disappears from rickshaw chart when a datatable is added to my web page

I built a web page using the amazing rCharts and knitr. My page combines rickshaw time series charts with sliders and a data table. When I add the datatable, all the sliders disappear from my rickshaw charts. I tried modifying the config.yml so…
jdl
  • 31
  • 1
3
votes
1 answer

Changing Color in nPlot for discreteBarChart

I'm trying to change the color of the bars for a discreteBarChart using nPlot, but the color argument doesn't seem to change anything in the example below: data(cars) speedTableVec<-table(cars$speed)…
3
votes
1 answer

Analyzing foreign source code in R - How can I find functions / operators that are hard to google?

Trying to learn something from source code. I stumbled upon "%||%" in ggplot2 as well as in rCharts. Obviously the latter does not import the former, nor does it define "%||%" as a function. How can I search my R ecosystem for these functions? OS X'…
Matt Bannert
  • 27,631
  • 38
  • 141
  • 207