I plotted a dygraph using a dygraph
function from a dygraphs package. My data were from dates 2014-12-10 till 2014-12-17
> str(seriesXts)
An ‘xts’ object on 2014-12-10/2014-12-17 containing:
Data: num [1:8, 1:30] 0.928 0.977 0.935 0.989 0.854 ...
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : chr [1:30] "CiekawostkiFinanse" "CiekawostkiKobieta" "CiekawostkiMototech" "CiekawostkiSport" ...
Indexed by objects of class: [POSIXct,POSIXt] TZ:
xts Attributes:
List of 1
$ descr: chr "my new xts object"
but on a plot legend says they start 1 day ealier, check this figure: On axis there is a date 12, but on legend there is a date 11...
Any idea where is a bug?
To reproduce this bug try this code
library(archivist)
library(dplyr)
library(devtools)
devtools::install_github("rstudio/dygraphs")
library(dygraphs)
seriesReactive <- loadFromGithubRepo( "db914a43536d4d3f00cf3df8bf236b4a", user= "MarcinKosinski", repo="Museum", value = TRUE)
dygraph(seriesReactive, main = "Dzienna proporcja kliknięć do odsłon dla danych struktur", ylab = "Proporcja") %>%
dyRangeSelector()
I've also posted this as an issue on rstudio's github https://github.com/rstudio/dygraphs/issues/22