Questions tagged [r-dygraphs]

49 questions
15
votes
3 answers

Synchronise Dygraph and DateRangeInput in Shiny

I would like to synchronise a dygraph and a DateRangeInput inside a Shiny App. The code bellow works fine : I can simultaneously use the zoom option And the daterange but I can't use the dyRangeSelector because of a "ping pong" Effect…
Vincent Guyader
  • 2,927
  • 1
  • 26
  • 43
6
votes
1 answer

Difficulty reproducing stacked bar graph in R using dygraphs

I’ve been using the dygraphs R package to produce some wonderful timeseries plots, but am having great difficulty reproducing the examples located here: http://rstudio.github.io/dygraphs/gallery-custom-plotters.html I’m particularly interested in…
dcl
  • 929
  • 1
  • 10
  • 22
5
votes
1 answer

Displaying multiple dygraphs on a grid in R-Markdown

Following the conversation here, is there a way to organize the output dygraphs in a grid? To Have one or more graph in a row. The code below would generate 4 dygraphs arranged vertically. Is there a way to organize them in a 4x4 grid? I tried using…
yurikleb
  • 180
  • 10
4
votes
1 answer

dygraphs list with htmltools in Shiny

Taken from this question, I would like to know how to show a dy_graph list object in shiny. The piece of code below creates it but I am not an expert in html and reading the htmltools manual did not help. Essentially I need this part…
J. Doe.
  • 1,255
  • 1
  • 12
  • 25
3
votes
1 answer

Activate pointClickCallback in a time series to capture peaks and valleys

I am trying to select manually the peaks and valleys from a noisy sinusoidal signal within a time series which is displayed on a dygraph using R. I create a simple example below. x=seq(0.1,10,by=0.01) y=sin(x) ts =…
3
votes
1 answer

How can I create multiple shades in dygraphs using a data frame?

I have time series data that I plotted using dygraphs. Now I want to shade some events. The start and end points of these events are stored in a data frame. However, when I try to write a function to add multiple shades, I always get error…
Nuschka
  • 45
  • 5
3
votes
2 answers

Add a period counter on dygraphs label

For example, on a dygraph like that: library(dygraphs) lungDeaths <- cbind(mdeaths, fdeaths) dygraph(lungDeaths) I would like to customize the label as follows. Instead of Jan, 1974 Feb, 1974 etc. I would like to see: Jan, 1974 (1) Feb, 1974…
Brani
  • 6,454
  • 15
  • 46
  • 49
3
votes
2 answers

Show/hide series interractively in dygraph

Is there a possibility to show/hide the series interactively in a R dygraph? The idea is to compare many time series and have for example a ticking box where one could select/deselect the series to show or hide any of them. I could not find such an…
Nikola
  • 33
  • 4
3
votes
1 answer

Interactive duration plot

I have samples and duration. library(lubridate) daf <- data.frame(sample=c("m","k","c","b"),duration=ddays(c(4,2,1,3))) daf$start <- Sys.time()-daf$duration > head(daf) sample duration start 1 m 345600s (~4 days)…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113
3
votes
1 answer

how to plot candlestick + roller in dygraphs [r]

Hi I try to plot a candlestick plot + roller average line. library(xts) library(dygraphs) data(sample_matrix) m <- tail(sample_matrix, n = 32) dygraph(m) %>% dyCandlestick() %>% dyRoller(showRoller = T, rollPeriod = 5) yields this: What…
YJZ
  • 3,934
  • 11
  • 43
  • 67
3
votes
1 answer

Trouble Deploying r shiny app with dygraphs

I'm currently attempting to deploy my R shiny app which uses the dygraphs package to shinyapps.io. My app works fine locally but when I try to deploy it says the webpage cannot be found - "HTTP 500 Internal Server Error". My UI code…
ASmith
  • 33
  • 4
2
votes
1 answer

How to display all the months (axis ticks/breaks) on the following dygraph? (R)

Following R code and data provided, uses the dygraph library (R interface for the js dygraph) library(xts) library(htmlwidgets) library(dygraphs) date <- c("2015-01-01", "2015-02-01", "2015-03-01", "2015-04-01", "2015-05-01", "2015-06-01",…
vorkatht11
  • 57
  • 4
2
votes
0 answers

Unable to change size of dygraphs in Shiny

I am trying to decrease the size of my dygraph output. But all of my settings seem to be ignored. I have tried specifying the height in both the dashboard layout and dygraph settings. All packages and software is up-to-date via github not…
Gabriel Fair
  • 4,081
  • 5
  • 33
  • 54
2
votes
0 answers

Can dygraphs be used to plot by day/month rather than a full date object?

I'm wondering if there is a way to create a dygrpah that plots variables by a partial date object (such as day of the year or month) for comparison. For example, if I had daily data for five years, can I plot a variable by 'day of the year' to…
bwc
  • 1,028
  • 7
  • 18
2
votes
0 answers

How to load down-sampled data while zooming in R dygraph?

I created an R shiny application that has a dygraph based on a data table that is dynamically subsetted by a checkboxGroupInput. My problem is, when I attempt to load large amounts of data (millions of records), it loads very slowly and/or crashes.…
fowtom
  • 83
  • 1
  • 5
1
2 3 4