As shown in the image below, the legend of the ggplotly overlaps the plot when the shiny app\'s window is resized. How can I fix this?
Here is my code: