0

I'm trying to autoscale a plotly graph from a function in a R shiny app - which essentially works, but also resets the entire x and y axis layout (size, font, color, ...). Is it possible to preserve those settings and to only modify the axis scaling?

That's the code:

observeEvent(input$selBg_dz1,{

backgroundSignal$dz1_delta <- calcSignalBackground("DZ1_delta")

plotlyProxy("myGraph", session = session) %>%
 plotlyProxyInvoke("relayout", list(xaxis=list(autorange=T), yaxis=list(autorange=T)))

 })
  • 1
    Can you provide your data using `dput()` and make your post [reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)? – jrcalabrese Jan 11 '23 at 17:28

0 Answers0