You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest version of ggplot2 has a new function that can make the title positioned with regard to the plot rather than the panel.
ggplotly doesn't yet implement this.
library(ggplot2)
plot<- ggplot(mpg) +
geom_point(aes(hwy, displ)) +
ggtitle("The placement of this title may surprise you") +
theme(plot.title.position="plot")
plotly::ggplotly(plot)