When trying to adjust the vertical position of axes' labels theme(axis.text=element_text(hjust=N)) or axes' titles theme(axis.title=element_text(hjust=N)), N being a number between (-1;1), I get no response. There's not error message, just no reaction form R - the labels/titles stay put.
Same thing happens (or rather doesn't happen) when I try to adjust the axis label/title for only one axis at a time (only axis.text.x/axis.title.x or only axis.text.y/axis.title.y)
Strangely, horizontal adjustment (vjust=N) works just fine...
I'm using: R version 3.2.3 (2015-12-10) with ggplot2 2.0.0. I tried running under it different RStudio versions - both 0.99.489 and 0.99.822. No dice. Fairly sure it's not R's or RStudio's fault.
I've tested this both on Windows:
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
and Mac:
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)
Failure both times. Everything works perfectly fine when using ggplot 1.0.1, so this is just the dev version's issue.
When trying to adjust the vertical position of axes' labels
theme(axis.text=element_text(hjust=N))or axes' titlestheme(axis.title=element_text(hjust=N)),Nbeing a number between(-1;1), I get no response. There's not error message, just no reaction form R - the labels/titles stay put.Same thing happens (or rather doesn't happen) when I try to adjust the axis label/title for only one axis at a time (only
axis.text.x/axis.title.xor onlyaxis.text.y/axis.title.y)Strangely, horizontal adjustment
(vjust=N)works just fine...I'm using:
R version 3.2.3 (2015-12-10)withggplot2 2.0.0. I tried running under it differentRStudioversions - both0.99.489and0.99.822. No dice. Fairly sure it's not R's or RStudio's fault.I've tested this both on Windows:
and Mac:
Failure both times. Everything works perfectly fine when using ggplot 1.0.1, so this is just the dev version's issue.