Hi everyone,
I am trying to put the title of the y-axis at the top of the axis, but for some reason it always goes out of the margins. Is there any way to correct this? Please see the example below:
require(ggplot2)
xy = data.frame(x=1:10, y=10:1)
ggplot(data = xy) +
geom_point(aes(x = x, y = y)) +
labs(x='DOY', y=expression(paste("Biomass (Kg ", ha^-1,')', sep=''))) +
theme(axis.title.y = element_text(angle = 0, vjust = 1.0, hjust = 10))
'vjust=1.0' is my limit. If I try 'vjust=1.1', the title goes all the way up and no longer appears on the graphic. What am I doing wrong?
Thanks in advance,
Thiago.
--
Thiago V. dos Santos
PhD student
Land and Atmospheric Science
University of Minnesota
http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm
Phone:
(612) 323 9898