[R] parameter couldn't be set in high-level plot() function
R user
R-user at zutt.org
Tue Jan 25 19:01:44 CET 2005
Think the problem I had with the bandplot (gplots) function is solved by
changing the expand.dots = FALSE to expand.dots = TRUE.
Don't understand actually why it says FALSE here, because that means it
does *not* pass extra arguments to plot.
If I change it to TRUE, my main/xlab/ylab arguments are passed just like
I wanted.
fragment of bandplot[gplots]
if (!add) {
m <- match.call(expand.dots = FALSE)
m$width <- m$add <- m$sd <- m$sd.col <- NULL
m$method <- m$n <- NULL
m[[1]] <- as.name("plot")
mf <- eval(m, parent.frame())
}
Jonne.
On Mon, 2005-01-24 at 15:50 +0100, R user wrote:
>
> 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.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
--
R user <R-user at zutt.org>
More information about the R-help
mailing list