search for: var1panel

Displaying 1 result from an estimated 1 matches for "var1panel".

2012 Mar 10
1
Use different panel functions with lattice
...ith names(df) = c("Var1", "Var2", "Var3", "Var4") and I plot data with xyplot(Var1+Var2~Var3|Var4, data=df) I want to use different panel functions for Var1 and Var2. How can I do ? Something like : panel.mypanel = function(x, y, ...) { if (Var1) panel.Var1Panel(x, y, ...) else panel.Var2Panel(x, y, ...) } xyplot(Var1+Var2~Var3|Var4, data=df, panel=panel.mypanel) (I have search with google, but I found nothing) Thanks