Hi

AFAIK you need to adjust xlim and ylim in first call of plot as the plot 
itself is not redrawn but you only add points (or other graphing objects 
like lines) to existing plot. If you know what you want to plot you can 
use xlim=range(all.values.you.want.to.plot) for "automatic" adjustment of 
plotting area during first plot call.

Regards
Petr


[EMAIL PROTECTED] napsal dne 17.10.2008 06:06:51:

> All -
> 
> 
> When I plot something like
> 
> a<-rnorm(5)
> b<-rnorm(5)
> plot(a,b,col = "red")
> points(10,-10)
> 
> The last point is missing because it is out of
> range of the first plot. 
> 
> I just try to switch from Matlab to R. In Matlab,
> it always can automatic adjust the xlim and ylim
> for such case. 
> 
> Is it possible auto adjust in R? Otherwise
> keep tracking xlim and ylim is really annoying.
> 
> Best,
> Haoda
> 
> ______________________________________________
> 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.

______________________________________________
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.

Reply via email to