[R] Setting plot() parameters

Rui Barradas ruipbarradas at sapo.pt
Thu Mar 20 20:40:09 CET 2014


Hello,

Use c(), not "...".

par(pin = c(5, 2.5))


Hope this helps,

Rui Barradas

Em 20-03-2014 19:30, Rich Shepard escreveu:
>    For time series plots using zoo I want the layout to be horizontal
> rectangles rather than squares. When I specify par(pin="5,2.5") an error is
> returned:
>
> Error in par(pin = "5,2.5") :
>    graphical parameter "pin" has the wrong length
> In addition: Warning message:
> In par(pin = "5,2.5") : NAs introduced by coercion
>
>    Is there a maximum length for the plot area? The pair (4,1.5)
> produces the
> same error.
>
> Rich
>
> ______________________________________________
> 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