Questions tagged [r-dygraphs]

49 questions
0
votes
1 answer

Finding the maximum in an xts column within the last X hrs

I have a dataset within a reactive dygraph that looks like this: data()$data.o date data.o 2022-07-21 12:10 AM 400.1 2022-07-21 12:11 AM 33.9 2022-07-21 12:12 AM 32.5 2022-07-21 12:13 AM 35.1 2022-07-21 12:14 AM 31.5 2022-07-21…
Kyle
  • 403
  • 4
  • 15
0
votes
1 answer

clicking on a point in dygraph in Shiny and printing out its corresponding date in POSIXct

I would like to click on a point in dygraph and get its corresponding date in "%Y-%m-%d %H:%M:%S" format. Here I've reproduced my problem: library(dygraphs) library(tidyverse) library(data.table) library(shiny) dates <- seq(as.POSIXct("2021-01-01…
Moein
  • 101
  • 5
0
votes
1 answer

How do I plot 4 candlestick charts in one plot?

I have been trying to plot 4 candlestick charts in one plot. The grid.arrange, layout or par() function didn't work. I have tried the following code as well m1 <- tail(merck.xts, n = 32) head(merck.xts) Open High Low Close …
sarwat zabeen
  • 11
  • 1
  • 1
0
votes
0 answers

How to plot time intervals without date components on the x-axis using dygraph and xts function?

I'm trying to plot time series with the dygraph function. A single diagram represents the course of a specific variable on different days. Since series correspond to different days, I would like the x-axis to be date-agnostic. It should only contain…
SkogensKonung
  • 601
  • 1
  • 9
  • 22
0
votes
1 answer

How to align the x-axis of synchronized R dygraphs with single and double y-axis?

My goal is to write a Shiny app to visually compare multiple time series. All time series have the same range of x-values. Vertically stacked and synchronized dygraphs nicely show the y-value of individual time series for a common x-value. This…
user9195416
0
votes
1 answer

Save dygraph to png in R markdown pdf output?

I use R markdown with dygraph(), when i am working i want the output to be an html document, allowing me to enjoy dygraph() features. But at the end of my work i want the ouput to be in a pdf. So all dygraphs need to be converted to .png. --- title:…
Tibo
  • 68
  • 1
  • 7
0
votes
2 answers

How to draw vertical Bars with dygraphs

I use R implementation of dygraphs to generate interactive charts in R. By default, it plots line chart of supplied data. However I would like to have vertical bars instead of line chart for below data…
Bogaso
  • 2,838
  • 3
  • 24
  • 54
0
votes
1 answer

Dygraphs - more advanced plots are not showing

When I plot basic graphs there aren't any issues, however when I try to plot something like dyBarSeries(), it plots the points on the graph and shows them when I pass with the cursor, however no barplots are generated. Here is a reproducible example…
Ljupcho Naumov
  • 196
  • 2
  • 12
0
votes
1 answer

Shiny - dygraphs: Show all error-bar values in legend

I am using dygraphs for R and I opened the following issue on GitHub the other day, however, I have not yet received an answer. Therefore, I am hoping someone in here will be able to answer my question. I want to know if it is possible to show all…
Morten Andersen
  • 17
  • 1
  • 1
  • 7
0
votes
0 answers

r dygraphs not showing plots

I installed and updated the dygraphs and htmlwidgets packages, but the values are not showing. I used many example code all of them are not showing value plots but only a frame with 0-1 y-axes. library(dygraphs) dygraph(nhtemp, main = "New Haven…
0
votes
1 answer

Centering a dygraph plot in R Markdown

I'm trying to center a dygraph but it remains left aligned. Below is my minimal example, highlighting how fig.align='center' workings with a normal plot: --- output: html_document --- ```{r fig.align='center'} plot(cars) ``` ```{r…
jcarlos
  • 425
  • 7
  • 17
0
votes
1 answer

dygraph (in r)'s annotations not displayed

I'm in the process of replacing a ggplot2 plot with a dygraph in one of my shiny apps since it's very visually appealing package and the interactivity is very fluid. I require to be able to display text above certain candles in a candlechart. I have…
GonzaloXavier
  • 128
  • 3
  • 13
0
votes
0 answers

How to plot mutiple variable plots in same dygraph in R

I have included the dataset please look into it >temp date_time value1 value2 1 2018-07-01 0.12 0.13 2 2018-07-02 0.24 0.15 3 2018-07-03 0.33 0.16 4 2018-07-04 0.40 0.18 5 2018-07-05 0.48 0.19 6 2018-07-06 0.67 …
0
votes
1 answer

Add info to the info box of a dygraph with the relevant R package

#libraries library(data.table) library(dygraphs) library(xts) #dummy data dates <- data.table(dates = seq.Date(as.Date("2017-03-01"), length = 14, by = "month"), satisfaction = runif(14, min = 0.1, max = 1), …
Greconomist
  • 386
  • 2
  • 15
0
votes
1 answer

dygraph inside an absolute panel

I have a leaflet map in my main panel and I want to place a dygraph inside an absolutePanel within an R shiny app. My problem is that I can't see the dygraph inside the absolutePanel. The code in my ui.R is like…
lavinya
  • 23
  • 6