powered by
Add a range slider to the x-axis
rangeslider(p, ...)
plotly object.
these arguments are documented here https://plot.ly/r/reference/#layout-xaxis-rangeslider
# NOT RUN { plot_ly(x = time(USAccDeaths), y = USAccDeaths) %>% add_lines() %>% rangeslider() # }
Run the code above in your browser using DataLab