search for: conditioning_vari

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

2009 Sep 24
2
Access to conditioning variables (lattice)
...e that describes what I wish to do (the problem lies with the commented line): dataset <- data.frame(x = c(1,2), y = c(4,5), Type = factor(c("a","b"))) xyplot( y ~ x | Type, dataset, panel = function(...) { panel.xyplot(...) # do_something_with(conditioning_variables[which.packet()]) }) The problem I am facing is that I do not know how to generically access the conditioning variables within the panel function. In this simple case, I can achieve what I want to do with the following call : do_something_with(Type[which.packet()]) but that requi...