[R] parameter couldn't be set in high-level plot() function

R user R-user at zutt.org
Mon Jan 24 15:50:27 CET 2005



Dear R users,

I am using function bandplot from the gplots package.
To my understanding (viewing the source of bandplot) it calls
function plot (add = FALSE) with the same parameters (except for a few
removed).

I would like to give extra parameters 'xlab' and 'ylab' to function
bandplot, but, as can be seen below, that raises warnings (and the
labels do not show up at the end).

It does work to call title(... xlab="blah", ylab="foo") after bandplot
(), but then I have two labels on top of each other, which is even more
ugly.

Can anyone explain me why this goes wrong?

Thanks in advance,
Jonne.


> x11() ; bandplot(x=xdata, y=zdata)

[works fine]

> x11() ; bandplot(x=xdata, y=zdata, xlab="blah", ylab="foo")
There were 22 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: parameter "xlab" couldn't be set in high-level plot() function
2: parameter "ylab" couldn't be set in high-level plot() function
3: parameter "xlab" couldn't be set in high-level plot() function
4: parameter "ylab" couldn't be set in high-level plot() function
5: parameter "xlab" couldn't be set in high-level plot() function
6: parameter "ylab" couldn't be set in high-level plot() function
7: parameter "xlab" couldn't be set in high-level plot() function
8: parameter "ylab" couldn't be set in high-level plot() function
9: parameter "xlab" couldn't be set in high-level plot() function
10: parameter "ylab" couldn't be set in high-level plot() function
11: parameter "xlab" couldn't be set in high-level plot() function
12: parameter "ylab" couldn't be set in high-level plot() function
13: parameter "xlab" couldn't be set in high-level plot() function
14: parameter "ylab" couldn't be set in high-level plot() function
15: parameter "xlab" couldn't be set in high-level plot() function
16: parameter "ylab" couldn't be set in high-level plot() function
17: parameter "xlab" couldn't be set in high-level plot() function
18: parameter "ylab" couldn't be set in high-level plot() function
19: parameter "xlab" couldn't be set in high-level plot() function
20: parameter "ylab" couldn't be set in high-level plot() function
21: parameter "xlab" couldn't be set in high-level plot() function
22: parameter "ylab" couldn't be set in high-level plot() function
There were 22 warnings (use warnings() to see them)




More information about the R-help mailing list