Wensui Liu
2006-Sep-16 20:59 UTC
[R] how to rescale the limits of yaxis rather than using the data range by default?
Dear Lister, plot() is using the data range as the default limits of yaxis. Is there any way I can change the limits? I just look at the help of plot() and par() and couldn't find answers. Thanks. -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Health Policy and Clinical Effectiveness Cincinnati Children Hospital Medical Center
Wensui Liu
2006-Sep-16 21:33 UTC
[R] how to rescale the limits of yaxis rather than using the data range by default?
HI, Peter, It is exactly what I want. Thank you so much! wensui On 9/16/06, Peter Konings <peter.l.e.konings at gmail.com> wrote:> Hi, > > I'm not sure I understand your question correctly, but does the ylim option > of plot do what you want? > > HTH > Peter. > > > On 9/16/06, Wensui Liu <liuwensui at gmail.com> wrote: > > > Dear Lister, > > plot() is using the data range as the default limits of yaxis. Is > there any way I can change the limits? I just look at the help of > plot() and par() and couldn't find answers. > > Thanks. > > > -- > WenSui Liu > (http://spaces.msn.com/statcompute/blog) > Senior Decision Support Analyst > Health Policy and Clinical Effectiveness > Cincinnati Children Hospital Medical Center > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Health Policy and Clinical Effectiveness Cincinnati Children Hospital Medical Center
David Barron
2006-Sep-16 21:35 UTC
[R] how to rescale the limits of yaxis rather than using the data range by default?
If you look at ?plot.default you should find that the way to do this is to use the ylim argument. On 16/09/06, Wensui Liu <liuwensui@gmail.com> wrote:> > Dear Lister, > > plot() is using the data range as the default limits of yaxis. Is > there any way I can change the limits? I just look at the help of > plot() and par() and couldn't find answers. > > Thanks. > > > -- > WenSui Liu > (http://spaces.msn.com/statcompute/blog) > Senior Decision Support Analyst > Health Policy and Clinical Effectiveness > Cincinnati Children Hospital Medical Center > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- ================================David Barron Said Business School University of Oxford Park End Street Oxford OX1 1HP [[alternative HTML version deleted]]