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)))
})