[R] Setting plot() parameters
Sarah Goslee
sarah.goslee at gmail.com
Thu Mar 20 20:40:34 CET 2014
You're specifying a string rather than two numbers.
Try c(5, 2.5) instead.
Sarah
On Thu, Mar 20, 2014 at 3:30 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> 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
>
--
Sarah Goslee
http://www.functionaldiversity.org
More information about the R-help
mailing list