Questions tagged [r-dygraphs]
49 questions
2
votes
0 answers
Is it possible to exclude non-business days from a dyGraph of an xts object in R?
I have seen the use of scale_x_bd for ggplot2 in the bdscale package, but I'm not sure how to achieve the same thing in a dygraph (from the dygraphs package) or whether it is even possible by hacking the corresponding xts object?

Palace Chan
- 8,845
- 11
- 41
- 93
1
vote
1 answer
The `dygraphs::dyGroups()` and `dygraphs::dySeries()` Functions in R Don't Plot Point Shapes Correctly
I'm having some trouble using the dygraphs package to plot my time-series data. I'm trying to plot 6 response variable columns on the same graph, and I'm trying to split these 6 columns into 2 groups of 3 ('Response_A' and 'Response_B'). Here's a…

David Moore
- 670
- 3
- 15
1
vote
1 answer
R shiny dygraph not rendering
I have decided to change my basic plot() for a dygraph() but the dygraph isn't rendering (even though there is no error message). I have tested dygraphs in R shiny using the documentation and it worked. Could someone help me? Note that if you…

DDigits
- 127
- 6
1
vote
0 answers
How to show qualitative values when hovering on dygraph in R-Shiny?
I have a time-series of quantitative and qualitative data. I am trying to plot a time-series of the data with dyGraphs, but I also want to be able to view the qualitative data when I hover over a certain point.
Something like…

owaiapu
- 11
- 1
1
vote
1 answer
Plot series in same dyGraph with dyCandlestick in R
How to add series with dyCandlestick.
The data has columns "timestamp", "open", "high", "low", "close", "volume", "mean_value", "ma_20", "ma_50". Following code gives me a right candlestick chart.
library(tidyverse)
dt <-…

Aman J
- 1,825
- 1
- 16
- 30
1
vote
2 answers
How do I send multiple dySeries to a secondary axis based on checkbox input in shiny?
I'm trying to plot a dyGraph using the lungDeaths timeseries, but I want "mdeaths" and "fdeaths" to be on the secondary axis, if at least one of them is selected alongside "ldeaths".
Here's a working…

Pedro Costa
- 29
- 6
1
vote
0 answers
R Dygraph, how to display values from other time series
I would like to be able to create a plot with only one time serie but I want the interactive values to be displayed to come from two time series. Ideally, I would like to have something like this :
I know how to plot two time…

hans glick
- 2,431
- 4
- 25
- 40
1
vote
1 answer
r - how to plot dygraphs in same panel
I want to make a graph for time series with dygraph package, I have several time series and I want to compare the behavior year by year as shown in the image. Any suggestions.
library(zoo)
serie1 <- zoo(rnorm(365),…

Rafael Díaz
- 2,134
- 2
- 16
- 32
1
vote
0 answers
dygraph stepPlot: is there a direction option?
R dygraph with the stepPlot option displays steps in a style "horizontal, then vertical" (equivalent to direction = "hv" in ggplot2 geom_step). My data are the result of some aggregation, e.g. apply.monthly (ts, mean), which outputs the monthly…

josef56
- 11
- 2
1
vote
1 answer
Dygraph in R, Synching the hoover
It's a follow up to this questions: dygraph in R multiple plots at once
Is it possible to synchronize these two plots in a way that the pointer (hoover) on one, shows the value in the other graph for the same time point?

Mehdi Zare
- 1,221
- 1
- 16
- 32
1
vote
1 answer
Add Comma separator in the Y-axis label in Dygraph
I have below Dygraph using the dygraphs package
library(dygraphs)
library(htmlwidgets)
library(zoo)
valueFormatter = "function formatValue(v) {
var suffixes = ['', 'K', 'M', 'G', 'T'];
…

Bogaso
- 2,838
- 3
- 24
- 54
1
vote
1 answer
Adjust chart area in Dygraph R
I'm making a simple chart in Dygraphs R, and the title is too long to fit on one line. For example:
library(tibble)
library(dygraphs)
dat <- tibble(x = 1:10, y = 11:20)
dygraph(dat,
main = "THIS TITLE HAS ONE LINE
THIS TITLE HAS TWO…
THIS TITLE HAS TWO…

Ryan Gentzler
- 11
- 2
1
vote
1 answer
Plotting tibble using R dygraphs
I'm trying to plot some time-series data in R using the dygraphs package (I'm an R newbie), but having trouble and I suspect it's due to data format issues.
Here is a sample of my code:
df <- select(sal_data,DateTime,'Sal…

DarwinsBeard
- 527
- 4
- 16
1
vote
1 answer
dygraph bar charts with negative values in R
I have time-series data that I would like to plot in R with dygraphs with bars as opposed to lines. I am using the following plotter suggestion from the dygraphs documentation.
dyBarChart <- function(dygraph) {
dyPlotter(dygraph = dygraph,
…

iskandarblue
- 7,208
- 15
- 60
- 130
1
vote
1 answer
Is it possible to make a fan chart with dygraphs?
I'm wanting to combine multiple lower/value/upper style series in one graph with shaded bars. Is it possible to create?
For example, for xts object "new_df" below:
df <- data.frame("value" = c(1,2,3,4,5), "upper1" = c(1.2, 2.3, 3.1, 4.6, 5.9),…

Cuong.S
- 39
- 1
- 1
- 5