problem with sub in graphs
I understand the problem now. Clearly a more systematic approach to the use of ... is required. In the current example with plot and hist the problem arises because parameters of the title function are being passed to other low level graphical functions. The solution therefore is that only global graphical parameters such as col, are passed via ... and function specific parameters like sub need to be specified in the function definition. Hence in the current situation plot.default and hist.default require a sub= argument which should be passed only to the title function. It currently is not, and yes it would be handy to be able to turn off the warnings. Colin
Colin> Use of the graphical parameter 'sub' in a high level graphics
Colin> function is inconsistent, and incompatible with the blue book
>> plot(1:10, main="test", sub="demo")
Colin> Warning: parameter "sub" couldn't be set in high-level plot()
function
Exactly. And because the problem existed, I liked the warnings to appear. The idea is that the R code (not the low level C graphics) should be fixed; This would mean that R functions must make sure to only path valid "..." stuff to C. Usefully, we would have a global option to turn off these warnings. (as the other graphics warnings ! ==> ``par(err = -1)'' would be the thing )
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._