[R] Title for y-axis on right side
Jim Lemon
jim at bitwrit.com.au
Sat Dec 18 02:08:24 CET 2010
On 12/17/2010 10:41 PM, phils_muell at arcor.de wrote:
> Hi,
>
> I want to have a title for the y-axis on the right side of the plot.
> I know how to do it on the left side:
>
>> title(ylab="Title for y-axis")
>
> But how can I have the title on the right side?
Hi Phil,
You probably want to add some margin on the right before you do the plot:
par(mar=c(5,4,4,4))
plot(...)
then:
mtext("Right side",side=4,line=2)
Jim
More information about the R-help
mailing list