Do you mean maybe:
plot(x, ylim= range(x) )
?
----------------------------------------------
My contact information:
Tal Galili
E-mail: Tal.Galili@gmail.com
Phone number: 972-52-7275845
FaceBook: Tal Galili
My Blogs:
http://www.talgalili.com (Web and general, Hebrew)
http://www.biostatistics.co.il (Statistics, Hebrew)
http://www.r-statistics.com/ (Statistics,R, English)
On Tue, Nov 17, 2009 at 6:50 AM, Yoseph Zuback <yca.zuback@gmail.com>
wrote:
> Hello,
>
> I found a really awesome argument for the plot() function yesterday,
> I didn't write it down and really regretting it as I can't find the
post
> that has it.
>
> I have a plot(e,y)
>
> One value really deviates and throws my y-axis off. I know I can do
> something like this:
>
> "x = seq(-0.4, 0.4, length = 50)
> y = runif(50, -0.2, 0.2)
> plot.new()
> plot.window(xlim = c(-0.4, 0.4), ylim = c(-0.4, 0.4))
> axis(1, at = seq(-0.4, 0.4, by = 0.2))
> axis(2, at = seq(-0.4, 0.4, by = 0.2))
> points(x, y)
> box()"
>
> BUT the function I found was something like this:
>
> plot(e,y, range='(20,-20)')
>
> BAMM, easy. I definitely remember typing 'range'.
>
> Any leads?
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org 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.
>
[[alternative HTML version deleted]]