Skip to content
Back to formatted view

Raw Message

Message-ID: <424BD195.8020800@fz-rossendorf.de>
Date: 2005-03-31T10:31:49Z
From: Joerg van den Hoff
Subject: y-label on right hand side of plot
In-Reply-To: <20050330125636.1dcda7f7.butchar.2@osu.edu>

Is there a better way than:


par(mar=c(6,6,6,6))
plot(1:10,yaxt="n",ylab="")
axis(4)
text(12,5.5,'y-label',xpd=T,srt=90)


to get the y-ticks _and_ the y-label to the rhs of the plot? I did not 
find anything in the  'par', 'plot', 'axis' and 'title' manpages to 
solve the problem. (the above is ugly, because one needs to hardcode the 
   text position or needs to calculate it 'manually' from par('usr'). it 
would be much nicer, if there were a flag to 'title' controlling were 
the labels occur).

thanks
joerg