[Rd] biplot: ylim

Wolfram Fischer - Z/I/M wolfram@fischer-zim.ch
Tue Feb 18 18:34:03 2003


[R 1.6.1]

In biplot() there is coded:

 if (missing(xlim) && missing(ylim))
        xlim <- ylim <- rangx1 <- rangx2 <- range(rangx1, rangx2)
    else if (missing(xlim))
        xlim <- rangx1
    else ylim <- rangx2

With the code above, ylim will be overwritten
if xlim _and_ ylim are given as arguments.
To accept ylim, the code could be:

 if (missing(xlim) && missing(ylim))
        xlim <- ylim <- rangx1 <- rangx2 <- range(rangx1, rangx2)
    else{
        if (missing(xlim))
            xlim <- rangx1
        if (missing(ylim))
            ylim <- rangx2
    }


Wolfram