I am plotting a DYGraphs plot from an XTS object in R. The XTS object does not contain weekends in the data, however DYGraph seemingly by default puts them in. Is there a setting/option to stop this behavior? Setting the useDataTimezone
to TRUE
does not solve the issue.
Repeatable example:
library(xts)
library(dygraphs)
data <- data.frame(c("19/05/2016", "20/05/2016", "23/05/2016","24/05/2016"),c(1,2,2,4))
colnames(data) <- c("Timestamp", "Value")
data <- xts(data[,-1],order.by=as.POSIXct(data$Timestamp, format = "%d/%m/%Y"), tz="UTC")
dygraph(data)
This has entries on the X axis for the 21st and 22nd May which creates a gap and a joining line on the chart which I do not want to display.I only want to display the dates listed in the XTS objects.