I am not sure how to use the aes angle
in geom_label
. I thought this code below would rotate the labels by 45, but it doesn't.
library(ggplot2)
ggplot(data = mtcars[1:4,]) +
geom_label(aes(x = mpg, y = qsec, label=disp), angle = 45)
I am not sure how to use the aes angle
in geom_label
. I thought this code below would rotate the labels by 45, but it doesn't.
library(ggplot2)
ggplot(data = mtcars[1:4,]) +
geom_label(aes(x = mpg, y = qsec, label=disp), angle = 45)
Obviously this does not work for
geom_label
but forgeom_text
:From
?geom_text
rot
obviously refers to rotation and seems to be a deprecated parameter for angle.