[R] plot ylab on the right

Jim Lemon jim at bitwrit.com.au
Tue Jan 12 11:56:29 CET 2010


On 01/12/2010 09:41 PM, Mister Vanhalen wrote:
> Hello,
>
> I have a graphic and I want to plot the yaxis AND ylab on the right.
> I manage to plot axis on the right with axis(4) but I don't know how to
> write the ylab on the right.
>
> barplot(data, name=leg, xlab="Probability", ylab="Number of links", axes=F)
> axis(4)
>
>    
Hi Mister Vanhalen,
Try this:

mtext("Number of links",4)
> And another question :
> Is there an easy way to indicate that directly on barplot command ?
>
>
>    
A quick look at the "axis" command has not revealed it.

Jim



More information about the R-help mailing list