Basically what the topic line says. The following code creates a graph with a horizontal y mark:
require(ggplot2)
silly.plott <- data.frame(silly = c(1,2,3,4,5), plott = c(1,2,3,4,5))
ggplot(silly.plott, aes(x = silly, y = plott))+
geom_point()+
theme(axis.title.y = element_text(angle = 0, vjust = 0.5))

But when I move the y axis to the left, the labels become vertical!
ggplot(silly.plott, aes(x = silly, y = plott))+
geom_point()+
scale_y_continuous(position = "right")+
theme(axis.title.y = element_text(angle = 0, vjust = 0.5))

This seems like such a silly problem, and I'm sure I just miss something obvious. Plz help me.
source
share