[R] Intentional behaviour of par()$usr?

Martin Maechler maechler at stat.math.ethz.ch
Wed Jan 10 18:48:15 CET 2001

>>>>> "BXC" == BXC (Bendix Carstensen) <bxc at novonordisk.com> writes:

    BXC> I had some trouble getting some text in the right place on a plot
    BXC> with logartimic y-axis, until I discovered:

what trouble did you have exactly ?

  plot(NA, xlim=1:2, ylim=c(5,500), log="y") 
  text(1,200, "(1,200)", adj = 0)

works perfectly for me.

    >> plot(NA, xlim=1:2, ylim=c(5,500), log="y") 
    >> par()$usr
    BXC> [1] 0.96000 2.04000 0.61897 2.77897
    >> 10^(par()$usr[3:4])
    BXC> [1] 4.158819 601.132217

    BXC> Is this a bug or a facility?  

"feature" is how we call these ...

    BXC> It is not mentioned under par -> usr in the manual.

what do you propose to say there?

  { Ideally we get a diff of src/library/base/man/par.Rd }

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
r-help 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-help-request at stat.math.ethz.ch

More information about the R-help mailing list