r - align text on axis to start at same position -
please have @ plot. possible force text on y-axis start @ same position (and not end @ same position case now)?
you can use theme
adjust axis.text.y
. use hjust = 0
left alignment. altogether, add line plot:
theme(axis.text.y = element_text(hjust = 0))
and here reproducible example produces similar plot.
ggplot(mtcars, aes(x = mpg, y = rownames(mtcars), fill = factor(cyl))) + geom_dotplot(binaxis = "y") + theme(axis.text.y = element_text(hjust = 0))
Comments
Post a Comment