From wolfram@fischer-zim.ch  Tue Feb 18 18:34:03 2003
From: wolfram@fischer-zim.ch (Wolfram Fischer - Z/I/M)
Date: Tue Feb 18 18:34:03 2003
Subject: [Rd] biplot: ylim
Message-ID: <20030218175128.A8078@s1x.zimnet.ch>

[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



[Rd] biplot: ylim
Wolfram Fischer - Z/I/M