Let's say you want to make an interactive ggvis plot with datetime data on the X axis: i.e. you want to be able to zoom in on specific times in the plot.
Is this a) possible b) have any workaround or c) better solved by another package?
Take this example data and plot for example:
library(ggvis)
df <- data.frame(time = rep(as.POSIXct("2013-10-10")+(1:100)*60^2,2),
treatment = c(rep("a",100),rep("b",100)), rate = rnorm(200,0.3,.01),
upper = rnorm(200,0.4,.01), lower = rnorm(200,0.2,.01))
df %>%
group_by(treatment) %>%
ggvis(~time,~rate,stroke=~treatment) %>%
layer_ribbons(y=~upper,y2=~lower,fill=~treatment,opacity:=0.2) %>%
layer_lines() %>%
scale_datetime("x", nice = "hour")
