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

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 Santosh
fr...@vestas.com > > http://www.vestas.com > > > > Company reg. name: 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

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 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
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 Santosh
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 the column/row indices, etc... Is that the only way (other than grid.arrange)? Is column/row/page control possible through grid.arrange..? On Tue, Feb 18, 2014

Re: [R] plot a list of trellis objects

2014-02-18 Thread Santosh
Thanks for the suggestion.. Is there a way I can include arguments to the *grid.arrange* function? I tried in your example something like... gridar <- function(x,ncol=2,...) grid.arrange(x,...) do.call(gridar, lattice.plots); I could not make it work when I try to control number of columns/rows a

Re: [R] plot a list of trellis objects

2014-02-18 Thread Santosh
Thanks for all your suggestions.. santosh On Tue, Feb 18, 2014 at 4:11 AM, Duncan Mackay wrote: > Hi Santosh > > for more control on size and position > > ?lattice::print.trellis > > Duncan > > Duncan Mackay > Department of Agronomy and Soil Science > University of New England > Armidale NSW 23

Re: [R] plot a list of trellis objects

2014-02-18 Thread Duncan Mackay
Hi Santosh for more control on size and position ?lattice::print.trellis Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bo

Re: [R] plot a list of trellis objects

2014-02-17 Thread Frede Aakmann Tøgersen
How about lattice.plots <- list(xyplot(rnorm(10) ~ 1:10, type = "b"), xyplot(rnorm(10) ~ 1:10, type = "b"), xyplot(rnorm(10) ~ 1:10, type = "b"), xyplot(rnorm(10) ~ 1:10, type = "b")) do

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

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

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-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-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
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 <