[R] Odp: R plot
Petr PIKAL
petr.pikal at precheza.cz
Fri Oct 17 09:39:48 CEST 2008
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
r-help-bounces at r-project.org 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 at 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.
More information about the R-help
mailing list