[R] Setting plot() parameters

Rich Shepard rshepard at appl-ecosys.com
Mon Mar 24 21:30:31 CET 2014


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"

... and ?window confirms that it's a function to extract a subset from a zoo (or
other) ts object. What have I missed? Are there additional zoo docs I could
read to further my understanding?

Thanks,

Rich




More information about the R-help mailing list