Hi:
Look at as.table = TRUE and (perhaps) the skip = options in xyplot().
as.table = TRUE will put 1998 in the upper left corner and proceed row-wise.
Here's an example using the singer data:
histogram( ~ height | voice.part, data = singer, nint = 17,
endpoints = c(59.5, 76.5), layout = c(2,4), aspect = 1,
xlab = "Height (inches)")
histogram( ~ height | voice.part, data = singer, nint = 17, as.table = TRUE,
endpoints = c(59.5, 76.5), layout = c(2,4), aspect = 1,
xlab = "Height (inches)")
The '2' voices are lower than the '1' voices, so the ordering is
correct.
HTH,
Dennis
On Mon, Jan 31, 2011 at 2:44 AM, Francesco Nutini <
nutini.francesco@gmail.com> wrote:
>
> Dear R users,
> I'm using xyplot to obtain a graph about a correlation x~y for
different
> years (a categoric variable).
> The program dispose automatically the graphs in this way:
>
> 2010
> 2007 2008 2009
> 2004 2005 2006
> 2001 2002 2003
> 1998 1999 2000
>
> Which code should I use to obtain this sequance of graphs?
>
> 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010
>
>
> I have tried with "par" code but it's doesn't work.
>
> Thanks for help,
>
> Francesco Nutini
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]