It may be tricky to put up a reproducible example, but I’ll try to describe the situation.
I have a plotting function that renders a ggplot() and has an argument called dynamic.plot. If dynamic.plot is FALSE, the function returns p. If dynamic.plot is TRUE, the function returns ggplotly(p).
When dynamic.plot is FALSE and I use renderPlot() in server.R and plotOutput() in ui.R, the RShiny app runs and produces a static ggplot.
I changed dynamic.plot to TRUE, changed renderPlot() to renderPlotly(), and changed plotOutput() to plotlyOutput(), as seems to be indicated in the documentation (https://plot.ly/r/shiny-tutorial/), and the plot looks erroneous. I included a screenshot, in case that’s useful.
