[R] Deparsing part of a list argument

2007-10-25 Thread Andrew Smith
Here's a simple example of the type of function I'm trying to write, where the first argument is a list of functions: myfun <- function(funlist, vec){ tmp <- lapply(funlist, function(x)do.call(x, args = list(vec))) names(tmp) <- names(funlist) tmp } > myfun(list("Summation" = sum,

[R] Origin label in lattice

2007-09-13 Thread Andrew Smith
just below and to the left of the lower left corner of the panel. I've unsuccessfully tried to do this using the xscale.components argument, and I'm having trouble figuring out which other arguments or functions might be helpful. I would greatly appreciate any advice! Thanks, Andrew