[R] vjust unresponsive (ggplot2)
Nordlund, Dan (DSHS/RDA)
NordlDJ at dshs.wa.gov
Tue Dec 22 19:37:40 CET 2015
Are you sure it is not working for you? Your example code did not work for me at all until I removed the plot .margin parameter (unit wasn't recognized). Once I did that hjust and vjust worked as expected. However, values between .1 and .9 for vjust don't really move the axis title very much so it may not be real noticeable. Try a value like 2 or 3, just to make sure you easily see the change in position before concluding that nothing is happening.
Daniel Nordlund, PhD
Research and Data Analysis Division
Services & Enterprise Support Administration
Washington State Department of Social and Health Services
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Ryan Utz
Sent: Tuesday, December 22, 2015 10:00 AM
To: r-help at r-project.org
Subject: [R] vjust unresponsive (ggplot2)
I cannot for the life of me get my axis titles to adjust vertically in a ggplot. I've seen several posts about this and have tried everything:
keeping vjust within 0 and 1, adjusting the margins, etc. hjust is behaving just as it should but vjust just mocks me in silence. No error message is produced.
Here's a sample code:
No matter what I put into vjust, nothing happens. Am I missing something obvious??
Thanks ahead of time for any help,
Ryan Utz, Ph.D.
Assistant professor of water resources
Home/Cell: (724) 272-7769
[[alternative HTML version deleted]]
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help