[R] plot a list

2008-09-06 Thread stephen sefick
i have a list of 6 each containing a dataframe of 96 observations as a zoo object. Is there a way to plot these in one frame par(mfrow=c(3,2)) this is what I tried lapply(d, FUN=plot) I can provide data, list is large. thanks -- Stephen Sefick Research Scientist Southeastern Natural Sciences A

Re: [R] plot a list

2008-09-06 Thread Gabor Grothendieck
Please read the last line to every message to r-help. In particular this question needs to include a cut down version of the data. I'll take a guess at what it looks like: library(zoo) L <- list(a = zoo(1:3), b = zoo(4:5)) plot(do.call(merge, L)) On Sat, Sep 6, 2008 at 4:47 PM, stephen sefick <

Re: [R] plot a list

2008-09-06 Thread stephen sefick
the plot(do.call(merge, z.l)) works on the following data well. Is there a way to get control of xlim so that it plots each individual graph shows only the one day (figures the x axis on the range of the data for each plot individually) and control labeling? Thanks in advance, and sorry for not p

Re: [R] plot a list

2008-09-06 Thread Gabor Grothendieck
Try xyplot.zoo with scale = list(relation = "free") specifying xlim as shown below: library(zoo) library(lattice) zm <- do.call(merge, z.l) xlim <- lapply(zm, function(x) range(time(na.omit(x xyplot(zm, xlim = xlim, scale = list(relation = "free")) On Sat, Sep 6, 2008 at 7:49 PM, stephen sefi

Re: [R] plot a list

2008-09-08 Thread stephen sefick
I have one more question. The below example is revised to better reflect the problem that I am running into. The two columns for each data frame in the list are named the same because they are subsets of the same site, which has the same name in the larger data set. So when xyplot plots the merg

Re: [R] plot a list

2008-09-08 Thread Gabor Grothendieck
Add this after the zm<- statement colnames(zm) <- sapply(z.l, colnames) On Mon, Sep 8, 2008 at 12:09 PM, stephen sefick <[EMAIL PROTECTED]> wrote: > I have one more question. The below example is revised to better > reflect the problem that I am running into. The two columns for each > data fr

[R] plot a list of trellis objects

2014-02-17 Thread Santosh
Dear Rxperts Is there a way to control the display order (or simplistically control panel layout) of a list of trellis objects without using a for loop (or whatever)? I just realize that gridExtra has that feature.. (grid.arrange)... But, converting each of those elements of the list of trellis

Re: [R] plot a list of trellis objects

2014-02-17 Thread Jeff Newmiller
What in the world is so horrible about for loops? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: O

Re: [R] plot a list of trellis objects

2014-02-17 Thread Frede Aakmann Tøgersen
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Santosh > Sent: 18. februar 2014 01:41 > To: r-help > Subject: [R] plot a list of trellis objects > > Dear Rxperts > > Is there a way to control

Re: [R] plot a list of trellis objects

2014-02-18 Thread Duncan Mackay
-boun...@r-project.org] On Behalf Of Santosh Sent: Tuesday, 18 February 2014 10:41 To: r-help Subject: [R] plot a list of trellis objects Dear Rxperts Is there a way to control the display order (or simplistically control panel layout) of a list of trellis objects without using a for loop (or

Re: [R] plot a list of trellis objects

2014-02-18 Thread Santosh
ity of New England > Armidale NSW 2351 > Email: home: mac...@northnet.com.au > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On > Behalf Of Santosh > Sent: Tuesday, 18 February 2014 10:41 > To: r-help > S

Re: [R] plot a list of trellis objects

2014-02-18 Thread Santosh
t; -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > > On Behalf Of Santosh > > Sent: 18. februar 2014 01:41 > > To: r-help > > Subject: [R] plot a list of trellis objects > > > > Dear Rxperts > > &g

Re: [R] plot a list of trellis objects

2014-02-18 Thread Santosh
Vestas Wind Systems A/S >> This e-mail is subject to our e-mail disclaimer statement. >> Please refer to www.vestas.com/legal/notice >> If you have received this e-mail in error please contact the sender. >> >> > -Original Message- >> > From: r-help-boun...

Re: [R] plot a list of trellis objects

2014-02-18 Thread Frede Aakmann Tøgersen
sclaimer statement. Please refer to www.vestas.com/legal/notice<http://www.vestas.com/legal/notice> If you have received this e-mail in error please contact the sender. From: Santosh [mailto:santosh2...@gmail.com] Sent: 18. februar 2014 20:59 To: Frede Aakmann Tøgersen Cc: r-help Subject: Re: [R]

Re: [R] plot a list of trellis objects

2014-02-18 Thread Frede Aakmann Tøgersen
ems A/S This e-mail is subject to our e-mail disclaimer statement. Please refer to www.vestas.com/legal/notice If you have received this e-mail in error please contact the sender. > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Beh

Re: [R] plot a list of trellis objects

2014-02-18 Thread Frede Aakmann Tøgersen
21:55 > To: 'arun' > Subject: RE: [R] plot a list of trellis objects > > So are you saying that the coder of do.call do not know the difference > between _list_ and _c_?? > > Yours sincerely / Med venlig hilsen > > > Frede Aakmann Tøgersen > Specialist,

Re: [R] plot a list of trellis objects

2014-02-18 Thread Santosh
> > From: Frede Aakmann Tøgersen > > Sent: 18. februar 2014 21:55 > > To: 'arun' > > Subject: RE: [R] plot a list of trellis objects > > > > So are you saying that the coder of do.call do not know the difference > > between _list_ and _

Re: [R] plot a list of trellis objects

2014-02-18 Thread Frede Aakmann Tøgersen
om/legal/notice If you have received this e-mail in error please contact the sender. > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Santosh > Sent: 18. februar 2014 22:23 > To: r-help > Subject: Re: [R] plot

Re: [R] plot a list of trellis objects

2014-02-18 Thread Duncan Mackay
-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Santosh Sent: Wednesday, 19 February 2014 06:12 Cc: r-help Subject: Re: [R] plot a list of trellis objects I forgot to add.. printltrellis seems to take in only one trellis object at a time.. so.. I think I would need to use a loop for varying