From dmurdoch@pair.com  Wed Apr 17 03:33:52 2002
From: dmurdoch@pair.com (Duncan Murdoch)
Date: Tue, 16 Apr 2002 22:33:52 -0400
Subject: [Rd] Using strwidth before plotting
Message-ID: <29npbusqe65s3n0f0so2hi69mf2qont0ud@4ax.com>

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


[Rd] Using strwidth before plotting
Duncan Murdoch