Displaying 1 result from an estimated 1 matches for "xlim0".
Did you mean:
xlim
2008 Jul 24
1
plot.dendrogram xlim/ylim
.../2)
ylim <- c(0, yTop)
if (horiz) {
xl <- xlim
xlim <- rev(ylim)
ylim <- xl
tmp <- xaxt
xaxt <- yaxt
yaxt <- tmp
}
plot(0, xlim = xlim, ylim = ylim, ......
I propose something like:
function(..., xlim, ylim)
xlim0 <- c(x1 - 1/2, x2 + 1/2)
ylim0 <- c(0, yTop)
if (horiz) {
xl <- xlim0
xlim0 <- rev(ylim0)
ylim <- xl
tmp <- xaxt
xaxt <- yaxt
yaxt <- tmp
}
if (missing(xlim)) xlim <- xlim0
if (missing(ylim)) ylim <- y...