[R] Setting plot() parameters

Gabor Grothendieck ggrothendieck at gmail.com
Mon Mar 24 22:33:15 CET 2014


On Mon, Mar 24, 2014 at 4:30 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Thu, 20 Mar 2014, Gabor Grothendieck wrote:
>
>> Try this:
>> opar <- par(pin = c(5, 2))
>> plot(zoo(1:3))
>> par(opar)
>
>
> Gabor,
>
>
> opar <- par(pin = c(5, 2))
>>
>> plot(s95.z(1:3))
>
> Error in plot(s95.z(1:3)) :
>   error in evaluating the argument 'x' in selecting a method for function
> 'plot': Error: could not find function "s95.z"
>
>> par(opar)
>
>
>> or this:
>> windows(width = 5, height = 2) # or x11
>> plot(zoo(1:3))
>> dev.off() # close window
>
>
> windows(width = 5, height = 2)
> Error: could not find function "windows"

In the first case the error message seems pretty clear to me.  You
have not invoked but not defined a function called s95.z.

In the second case you are probably not using Microsoft Windows so
there is no windows() function.  As pionted out in my original reply
you might need to use x11.




More information about the R-help mailing list