[R] call a function with explicitly not setting an argument

2011-07-23 Thread jeroen00ms
Is there a way to call a function, and explicitly set an argument to 'not specified'? My situation is the following. I have a function which passes on most of its arguments to another function. The second function, myfun2, serializes all arguments and is out of my control. myfun <- function(...){

[R] Save generic plot to file (before rendering to device)

2011-07-11 Thread jeroen00ms
I am looking for a way to save a plot (graphics contents) to a file after the plot has been calculated but before it has been rendered. More specifically, assume that I made a plot that took a very long time to produce, I would like to save this plot to a generic file that I can later, on a differe

[R] datastructure for multi-choice factors

2011-07-07 Thread jeroen00ms
I am working on a system to visualize survey responses. Survey responses typically include factors, numeric, timestamps, textfields and therefore fit perfectly nice in dataframes, making it easy to visualize using standard R functions. However I am currently working on a survey that also include q