Skip to content

Instantly share code, notes, and snippets.

@kazutan
Created August 27, 2015 02:27
Show Gist options
  • Save kazutan/1d902e3412cdac08f24f to your computer and use it in GitHub Desktop.
Save kazutan/1d902e3412cdac08f24f to your computer and use it in GitHub Desktop.
dygraphs_xts
library(dygraphs)
library(xts)
daylab <- seq(as.Date("2010-07-29"), as.Date("2010-8-10"), by="days")
val1 <- runif(length(daylab))
val2 <- runif(length(daylab))
vals <- data.frame(value1 = val1, value2 =val2)
rownames(vals) <- daylab
series <- xts(vals, order.by = daylab, tx="GMT")
dygraph(series)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment