[R] Graphics: somethink like autoscale

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Apr 21 12:36:08 CEST 2000


> What i try to do : i got data of the type (x,y) which i plot with plot
> (x,y).
> 
> i want to actualise that plot adding new points (x,y) (i did it with
> points(x,y)): how can i adjust the scale of the axis x and y
> to see all the points in the window.
> Ex: i start with plot (1,0.5). If i do points(0.8,0.5) no problem, all
> my points are visible on the graph. But if i do points(2,2),
> this point is not visible on the plot. I'm looking for a way to adjust
> the scale of the x and y axis to see all my points in the window.

Maybe it is this what you want:

  plot(1, 0.5, xlim=c(0,2), ylim=c(0,2))
  points(2, 2)

Regards, 
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list