Re: [R] y axix number into horizontal direction

2007-08-02 Thread John Kane
?par see las This should work --- plot(0,0,xaxt="n", type="n", ylim=c(0,100), las=1, ) mtext("35",side=2,at=35, line =1, las=1) --- --- Rebecca Ding <[EMAIL PROTECTED]> wrote: > Dear R users, > > I used plot() and

Re: [R] y axix number into horizontal direction

2007-08-02 Thread Stephen Tucker
try par(las=1) plot(0,0,xaxt="n",type="n", ylim=c(0,100)) mtext("35",side=2,at=35) you can use 'las=1' in par(), plot(), axis(), etc. more generally, you can use 'srt' in text() to rotate tick labels: plot(1:10,1:10,xaxt="n",type="n", yaxt="n",ylim=c(0,100)) axis(1); axis(2,lab=FALSE) text(x=pa

[R] y axix number into horizontal direction

2007-08-02 Thread Rebecca Ding
Dear R users, I used plot() and mtext() functions to draw a plot. The numbers: 0,20,35, 40,60,80,100 were in the vertical direction. I'd like to transfer them into the horizontal direction. plot(0,0,xaxt="n",type="n", ylim=c(0,100)) mtext("35",side=2,at=35) Any suggestion? Thanks. Rebecca