p <- ggplot(mtcars, aes(cyl, mpg)) +
geom_point()
# Create a simple secondary axis
p + scale_y_continuous("m1", sec.axis = sec_axis(~ . + 10, name = ("m2")))
As you can see "m1" and "m2" is facing towards the figure I am wondering how can I rotate "m2" 90-degrees? So it faces in the same orientation as "m1"? I tried using "rotate" but it's not allowed in sec.axis.