[Rd] Using strwidth before plotting

Duncan Murdoch dmurdoch@pair.com
Tue, 16 Apr 2002 22:33:52 -0400


In the plotcorr() function in the ellipse package, I want to position
things differently depending on the size of the labels.  I can use
strwidth to find out the length of the labels, but only when there's a
plot window open:  it won't open one.

Question:  What function call says:  make sure there's a window open
(i.e. do what plot() does before it starts plotting)?

I don't think I can use plot.new() or frame(), because I don' t want
to leave a blank page in the plot history if there was already a
window open.

Duncan Murdoch


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._