plotly (version 4.5.2)

rangeslider: Add a range slider to the x-axis

Description

Add a range slider to the x-axis

Usage

rangeslider(p, ...)

Arguments

p

plotly object.

...

these arguments are documented here https://plot.ly/r/reference/#layout-xaxis-rangeslider

Examples

Run this code
# NOT RUN {
plot_ly(x = time(USAccDeaths), y = USAccDeaths) %>% 
  add_lines() %>%
  rangeslider()

# }

Run the code above in your browser using DataCamp Workspace