Skip to content

generically forward low-level graphic parametres in function

2 messages · eldor ado, Jonathan Daily

#
Hello,

following problem:

i have a written my own function  to draw some sophisticated graphic,
which after manipulating data somewhere contains a plot comand
function <- function(x) {
...
plot(xy)
}

to tidy up my final graphs, it would be very handy to be able forward
all low-level graphic parameters set in function to plot

i.e.
function(x, cex=0.5) calls plot (xy, cex=0.5)

is there a way to do this?

thanks a lot,
lukas kohl
department of chemical ecology
university of vienna
#
try using `...`

function <- function(x, ...) {
#do stuff
plot(xy, ...)
}
On Thu, Jun 2, 2011 at 1:26 PM, eldor ado <rat.cage at gmail.com> wrote: