# Hjust and Vjust

[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

**is.R()**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

So, when you’re setting the position of text in ggplot, you may have to use the hjust and vjust commands. Depending on your demands, and if you don’t understand what they’re doing, they might seem hard to use. I found one script that produces the graph below, as well as an excellent discussion here: http://goo.gl/TaUsG

I have *modified* the code to produce the following handy “guide” to when to use which level for each of the various values in combination with three different angle settings. Again, this is someone else’s work, but a re-post might be helpful:

To

**leave a comment**for the author, please follow the link and comment on their blog:**is.R()**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.