rcharts

rCharts - Adding second y axis to time series

倾然丶 夕夏残阳落幕 提交于 2019-11-30 21:43:49
Does any of the packaged charting frameworks in rCharts support making a time series plot of two series with different y axis? In the case has anyone an example to share? I have looked at the documentation there is as well as on the charting frameworks web sites but have not found anything. This can be done in highcharts and most likely others. I have taken the nice work done here . A simplified version of that is: library(rCharts) h <- Highcharts$new() h$xAxis(categories = c('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')) h$yAxis(list(list(title = list

rCharts - Adding second y axis to time series

∥☆過路亽.° 提交于 2019-11-30 17:35:29
问题 Does any of the packaged charting frameworks in rCharts support making a time series plot of two series with different y axis? In the case has anyone an example to share? I have looked at the documentation there is as well as on the charting frameworks web sites but have not found anything. 回答1: This can be done in highcharts and most likely others. I have taken the nice work done here. A simplified version of that is: library(rCharts) h <- Highcharts$new() h$xAxis(categories = c('Jan', 'Feb'

rCharts in shiny : width with 2 charts

有些话、适合烂在心里 提交于 2019-11-30 17:29:50
问题 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 =

Plotting Great Circle Paths

妖精的绣舞 提交于 2019-11-30 14:35:10
问题 I'm trying to plot some path/connection based maps but am unable to figure out how. I see a lot of possibilities for one point based metrics (crime hotspots in London, etc. with googleVis, ggmap, etc.) but I can't find too many examples of two points based metrics (immigrations between cities, train routes, etc.) There is an example with the package geosphere, but it seems to not be available for R 3.0.2 . Ideally I would like something like this D3 example and would also like to customise

Creating Leaflet heatmaps in r and shiny using rCharts

吃可爱长大的小学妹 提交于 2019-11-30 09:54:35
I am using the great demo by Ramnath Vaidyanathan at http://rmaps.github.io/blog/posts/leaflet-heat-maps/index.html and I would like to reproduce his heat map for my shiny application. When I try to use Ramnath's code in shiny though I only manage to get the map out, but not the heat map. Possibly part of the reason of my problems is that the original code from Ramnath uses rMaps while I'm using rCharts (also developed by Ramnath) as it is more developed / better integrated with shiny and of course includes Leaflet. I tried to use rMaps with shiny's HTML generic commands renderUI and

nvd3 scatterPlot with rCharts in R: Vary size of points?

三世轮回 提交于 2019-11-30 09:26:45
I've been playing with rCharts and nvd3 for a bit of time now. Now I'm in a situation where I need a bubble chart, or at least a scatterplot where the size of the dots is dependent on a variable in the data. From this example , it seems possible. The example on scatter charts in rCharts is: library(rCharts) p1 <- nPlot(mpg ~ wt, group = 'cyl', data = mtcars, type = 'scatterChart') p1$xAxis(axisLabel = 'Weight') p1 So I've tried setting size to, for example gears . But it doesn't change anything. p2 <- nPlot(mpg ~ wt, group = 'cyl', size = 'gear', data = mtcars, type = 'scatterChart') p2$xAxis

nvd3 scatterPlot with rCharts in R: Vary size of points?

淺唱寂寞╮ 提交于 2019-11-29 14:33:17
问题 I've been playing with rCharts and nvd3 for a bit of time now. Now I'm in a situation where I need a bubble chart, or at least a scatterplot where the size of the dots is dependent on a variable in the data. From this example, it seems possible. The example on scatter charts in rCharts is: library(rCharts) p1 <- nPlot(mpg ~ wt, group = 'cyl', data = mtcars, type = 'scatterChart') p1$xAxis(axisLabel = 'Weight') p1 So I've tried setting size to, for example gears . But it doesn't change

R: interactive plots (tooltips): rCharts dimple plot: formatting axis

我们两清 提交于 2019-11-29 04:25:17
I have some charts created with ggplot2 which I would like to embed in a web application: I'd like to enhance the plots with tooltips. I've looked into several options. I'm currently experimenting with the rCharts library and, among others, dimple plots. Here is the original ggplot: Here is a first attempt to transpose this to a dimple plot: I have several issues: after formatting the y-axis with percentages, the data is altered. after formatting the x-axis to correctly render dates, too many labels are printed. I am not tied to dimple charts, so if there are other options that allow for an

rCharts with Highcharts as shiny application

若如初见. 提交于 2019-11-28 23:39:21
I have a shiny application consisting of three files. server.R, ui.R and the file to launch the application with require(shiny) require(rCharts) runApp("shinyApp") The application starts, but the plot is not visible. It works with a normal r-plot and with polycharts, but after trying a lot, I still have no success with rCharts (which includes rHighcharts). This is the files of the last try: server.R: library(rCharts) shinyServer(function(input, output) { output$myChart <- renderChart({ h1 <- Highcharts$new() h1$chart(type = "spline") h1$series(data = c(1, 3, 2, 4, 5), dashStyle = "longdash")

Shiny rcharts multiple chart output

与世无争的帅哥 提交于 2019-11-28 10:20:28
How can I overwrite the output display options with running multiple charts with shiny and rchart so the output result is a 2x2 matrix type grid layout. require(rCharts) require(shiny) require(data.table) runApp(list( ui = mainPanel( span="span6", showOutput("chart2", "Highcharts"), showOutput("chart3", "Highcharts"), showOutput("chart4", "Highcharts") ), server = function(input, output){ output$chart3 <- renderChart({ a <- hPlot(Pulse ~ Height, data = MASS::survey, type = "bubble", title = "Zoom demo", subtitle = "bubble chart", size = "Age", group = "Exer") a$chart(zoomType = "xy") a$chart