Skip to content

Problem printing y-axis titles on plots

1 message · Dave.Gregovich

#
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.