title: Is it possible to customize plotly rangeslider in R?
body: <p>Quick note: I have also posted this question on the <a href="https://community.rstudio.com/t/select-a-range-with-plotly-slider/93592" rel="nofollow noreferrer">R Studio Community</a>.</p>
  <p>I am trying to modify a plotly slider to make it a rangeslider similar to the one here: <a href="https://i.stack.imgur.com/vQ96M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vQ96M.png" alt="enter image description here" /></a>.</p>
  <p>The problem with the <code>rangeslider()</code> function is that instead of a rangeslider like the one in the image it produces one that is essentially a subplot of the main plot:</p>
  <pre><code>dat&lt;- data.frame(y=rnorm(366, mean=100, sd=50),
                   x=seq(as.Date(&quot;2020-01-01&quot;), as.Date(&quot;2020-12-31&quot;), by=&quot;days&quot;))
  p1&lt;- dat %&gt;% 
    ggplot(aes(x=x, y=y)) +
    geom_col() +
    theme_minimal() +
    xlab(&quot;&quot;) + ylab(&quot;&quot;) 
  ggplotly(p1, tooltip=&quot;x&quot;, dynamicTicks = TRUE) %&gt;% rangeslider()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Xl5GC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xl5GC.png" alt="enter image description here" /></a>.</p>
  <p>I have managed to get a slider more similar to the one I want in style using <code>frame =</code> in ggplot's aesthetics, however the resulting slider only selects one value at a time instead of a range of them:</p>
  <pre><code>dat&lt;- data.frame(y=rnorm(366, mean=100, sd=50),
                   x=seq(as.Date(&quot;2020-01-01&quot;), as.Date(&quot;2020-12-31&quot;), by=&quot;days&quot;))
  p1&lt;- dat %&gt;% 
    ggplot(aes(x=x, y=y, frame=as.character(x))) +
    geom_col(position=&quot;dodge2&quot;) +
    theme_minimal() +
    xlab(&quot;&quot;) + ylab(&quot;&quot;) 
  ggplotly(p1, tooltip=&quot;x&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/awYYS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/awYYS.png" alt="enter image description here" /></a>.</p>
  <p>Is it possible to create a rangeslider in the style I want with plotly?. I would be hugely thankful for any advice on how to solve this issue.</p>