[R] Plot margins

Torsten Hothorn hothorn at statistik.uni-dortmund.de
Mon Nov 22 10:43:42 CET 1999


Dear plotting experts,

we want to display Lorenz-curves and therefore we want the x and y axis to
meet in (0,0) without a margin. We expected par(usr=c(0,1,0,1)) to do
this, but if the following is done:

> par(usr=c(0,1,0,1))
> par()$usr
0 1 0 1			# which seems ok
> plot(c(0,1), c(0,1), type="l")

this plots a "normal" plot with margins, and now par() gives:

> par()$usr
-0.04  1.04  -0.04  1.04

which are the standard options. How can we force plot to use our usr
parameter instead of the standard or are there other ways we didn`t find?

Torsten (and other users...)

  


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