Re: [R] how to ajust y-axis values in plot() ?

2014-10-15 Thread PIKAL Petr
Hi is > plot(11:20, ylim=c(0,40)) > abline(h=40) > what you want? Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of PO SU > Sent: Tuesday, October 14, 2014 11:33 AM > To: R. Help >

Re: [R] how to ajust y-axis values in plot() ?

2014-10-14 Thread S Ellison
>   I want to plot( 11:20 ) in a plot. >  if i just type the code above, the y value  will be from 11 to 20, now i > want the > value from a given range like  0 to 40, how can i do it? See the ylim= argument to plot.default; eg plot(x, y, ylim=c(0,40)) Also look at ?par and note that plot() and

Re: [R] how to ajust y-axis values in plot() ?

2014-10-14 Thread Rui Barradas
Hello, Use the argument ylim. See ?par instead of plot. plot(11:20, ylim = c(0, 40)) abline(h=40) Hope this helps, Rui Barradas Em 14-10-2014 10:33, PO SU escreveu: Dear helpeRs, I want to plot( 11:20 ) in a plot. if i just type the code above, the y value will be from 11 to 20, now

[R] how to ajust y-axis values in plot() ?

2014-10-14 Thread PO SU
Dear helpeRs,   I want to plot( 11:20 ) in a plot.  if i just type the code above, the y value  will be from 11 to 20, now i want the value from a given range like  0 to 40, how can i do it? I read ?plot  for a while but  still can't solve it. Actually, the qustion is founded when i already plo