R-alpha: Another error in axis

Arne Kovac Arne Kovac <maak@stats.bris.ac.uk>
Sat, 10 May 1997 17:41:46 +0000 (GMT)


The commands

> plot(1:4,axes=F)
> axis(1,c(4,3,2,1))

produce the tick-marks but not the labels (except the last one). Sorting
the vector at in axis() seems to work, ie should lines 35-40 should read:

        else {
                at <- sort(at)
                if (log)
                        ind <- (10^usr[1] <= at & at <= 10^usr[2])
                else ind <- (usr[1] <= at & at <= usr[2])
        }


Arne

-- 
Arne Kovac
School of Mathematics                    Phone: +44 (0117) 942 7551
University of Bristol                    A.Kovac@bristol.ac.uk    
University Walk, Bristol, BS8 1TW, U.K.  http://www.stats.bris.ac.uk/~maak


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-