Re: [R] Setting plot() parameters

2014-03-24 Thread Rich Shepard
On Mon, 24 Mar 2014, Gabor Grothendieck wrote: Please provide this in reproduble form by displaying the output of dput(head(s95.z)) structure(c(85, 80, 85, NA, 90, 110, 8, 6, 5, NA, 14, 9, NA, NA, NA, NA, NA, NA, 30, 1214, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N

Re: [R] Setting plot() parameters

2014-03-24 Thread Gabor Grothendieck
On Mon, Mar 24, 2014 at 6:03 PM, Rich Shepard wrote: > On Thu, 20 Mar 2014, Gabor Grothendieck wrote: > >> opar <- par(pin = c(5, 2)) >> plot(~ s95.z$Se, main = "something", xlab = "Year", ylab = "Concentration >> (mg/L)") >> par(opar) > > > Is there a way to have the ylab value displayed on the

Re: [R] Setting plot() parameters

2014-03-24 Thread Rich Shepard
On Thu, 20 Mar 2014, Gabor Grothendieck wrote: opar <- par(pin = c(5, 2)) plot(~ s95.z$Se, main = "something", xlab = "Year", ylab = "Concentration (mg/L)") par(opar) Is there a way to have the ylab value displayed on the plot rather than x1? Nothing I see in ?plot or ?title suggests it is

Re: [R] Setting plot() parameters

2014-03-24 Thread Rich Shepard
On Mon, 24 Mar 2014, Gabor Grothendieck wrote: In the first case the error message seems pretty clear to me. You have not invoked but not defined a function called s95.z. Gabor, Got it, thanks. In the second case you are probably not using Microsoft Windows so there is no windows() funct

Re: [R] Setting plot() parameters

2014-03-24 Thread Gabor Grothendieck
On Mon, Mar 24, 2014 at 4:30 PM, Rich Shepard 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 evalua

Re: [R] Setting plot() parameters

2014-03-24 Thread Rich Shepard
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

Re: [R] Setting plot() parameters

2014-03-20 Thread Gabor Grothendieck
On Thu, Mar 20, 2014 at 7:13 PM, Rich Shepard wrote: > On Thu, 20 Mar 2014, Rich Shepard wrote: > > For time series plots using zoo I want the layout to be horizontal > rectangles rather than squares. When I specify par(pin = c(5,2.5)) nothing > happens; the plot frame is square regardless of sp

Re: [R] Setting plot() parameters

2014-03-20 Thread Rich Shepard
On Thu, 20 Mar 2014, Rich Shepard wrote: For time series plots using zoo I want the layout to be horizontal rectangles rather than squares. When I specify par(pin = c(5,2.5)) nothing happens; the plot frame is square regardless of specifying pin within the plot command or prior to issuing the p

Re: [R] Setting plot() parameters

2014-03-20 Thread Rich Shepard
On Thu, 20 Mar 2014, Rui Barradas wrote: Use c(), not "...". par(pin = c(5, 2.5)) Rui/Sarah, Thank you both. I did not pick up on that even though that's how plt is described. Rich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma

Re: [R] Setting plot() parameters

2014-03-20 Thread Sarah Goslee
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 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:

Re: [R] Setting plot() parameters

2014-03-20 Thread Rui Barradas
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

[R] Setting plot() parameters

2014-03-20 Thread Rich Shepard
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 intro