Hello R Folks...
Using the example below, I¹d like two of the panels to be plotted with type
= ³p² but the third to be done with type = ³h². I can¹t use type = c(³p²,
³p², ³h²) because this syntax applies all given types to every panel. I
don¹t think I can use groups and distribute.type because
Hi,
Something like this perhaps,
p - xyplot(y ~ x | names,
layout = c(1, 3),
panel = function(...,type=p) {
if (panel.number() == 1) {
panel.xyplot(...,type = h)
} else {
panel.xyplot(...,type = type)
}
})
plot(p)
HTH,
baptiste
Thanks Baptiste, your suggestion works wonderfully. Bryan
For anyone following along, the following line needs to replace the similar
one in my original example:
names - rep(c(Set 1, Set 2, Set 3, Set 4), 25)
Or the data lengths will be wrong.
On 9/7/09 4:19 PM, baptiste auguie
3 matches
Mail list logo