2

I am trying to write a function wrapper to make multiple plots within the same chart. The function that I use is plotCI() in 'gplots' package

sprPlot = function(data.frame, condition, ...){
require(gplots)
for(i in 1:condition){
    if(i == 1) 
       plotCI(...)
    else 
       plotCI(add = T, ...)
}

However, as you can see, since there are basically two plotCI()s, if I try to set some of the arguments in plotCI() - e.g. pch = -, I get an error message saying that the formal argument pch matches multiple arguments in the function. I wonder if there is any way to get around it. Thanks.

4

0 回答 0