[R] Plot margins

Jim Lemon bitwrit at ozemail.com.au
Mon Nov 22 12:40:40 CET 1999


Torsten Hothorn wrote:

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

I'm not exactly sure that you want this, but have a look...

> par(mai=c(0.1,0.1,0.1,0.1))
> plot(c(0,1), c(0,1), xlim=c(0,1),ylim=c(0,1),type="l",axes=F)
> axis(1,c(0,1))
> axis(2,c(0,1))

This should give you a plot with just enough room for axes (no labels).
If you use:

> par(mai=c(0,0,0,0))

you won't even be able to fit axes around the plot.

Jim


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