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)?

enter image description here

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

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -