[R] Problem printing y-axis titles on plots

Dave.Gregovich Dave.Gregovich at noaa.gov
Tue Sep 16 19:19:55 CEST 2008


Hello,
I am not able to print titles for the y-axis. I am using R version 2.7.1 
(I also had this problem with 2.6.1), on OS Redhat Enterprise Linux 5 
(64 bit). The following code may be helpful to anyone who can help:

#This line does not plot 'test1'
plot(1:10,1:10,ylab="test1")
#This line does not plot 'test2'
mtext("test2",side=2)
#This line DOES plot 'test3'
mtext("test3",side=1)
#This line DOES plot 'test4'
mtext("test4",side=1,at=-.1,line=-2)

Thanks for any time you might spend with this! Dave.

-- 
_______________________________________
Dave Gregovich
Biologist
NOAA
Southwest Fisheries Science Center
La Jolla, CA, USA
dave.gregovich at noaa.gov
(858)546-7161



More information about the R-help mailing list