I use ggplotly in my shiny app and use the layout function for the title. When I want to pan the picture, the title and images stay on the same spot while the plot is moving.