[R] Troubles with plot margins
Uwe Ligges
ligges at statistik.uni-dortmund.de
Wed May 2 15:30:08 CEST 2001
> Marco Taboga wrote:
>
> I am trying to set the margins of a plot with mai and I get a strange
> output.
> I write:
> plot(rnorm(1000),type="l",mai=c(1,1,1,1))
> and what I get is a plot with unchanged margins and a column of four 1
> plotted on the top margin.
In plot(..., mai = ...) , R thinks mai is short for "main" and sets c(1,
1, 1, 1) as the main title.
What you should try:
par(mai = rep(1, 4))
plot(...)
Uwe
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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