[R] Positioning in xyplot

Michael Kubovy kubovy at virginia.edu
Wed Apr 11 00:21:32 CEST 2007


Dear R-helpers,

I have an xyplot

of the following kind:
xYplot(y ~ x | p, groups = factor(gg, levels = c('1', '5', '2', '4',  
'3')),
	strip = strip.custom(var.name = 'g', factor.levels = c(1', '5', '2',  
'4', '3'),
		strip.levels = T, strip.names = T, sep = ' = ', shingle.intervals =  
NULL),
	data = df, type = 'b', label.curves = F, layout = c(2, 3),
	)

Currently this puts the panels as follows

3
2  4
1  5

I need:

   3
2   4
1   5

How can I do this? Any help will be much appreciated.

_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



More information about the R-help mailing list