Something funky is going on with axisnames or args in plot.factor that
I can't figure out. The situation can be remedied with
plot.factor(factor(1:3), col="red", axes=TRUE)
alas, why do you need "axes=TRUE"?
Because of the logic of
axisnames <- if (length(dargs <- list(...)) > 0) {
nam <- names(dargs)
((any("axes" == nam) && dargs$axes) || (any("xaxt" ==
nam) && dargs$xaxt != "n"))
}
gives FALSE if there are any "..." arguments, and neither of axes= and
xaxt= are given.
I think the first part of plot.factor wants to be
if (missing(y) || is.factor(y)) {
dargs <- list(...)
axisnames <- if (!is.null(dargs$axes)) dargs$axes
else if (!is.null(dargs$xaxt)) dargs$xaxt != "n"
else TRUE
}
Anyone know better?