[R] plotting text from formatted object

Thomas Lumley tlumley at u.washington.edu
Wed May 9 18:32:26 CEST 2001


On Wed, 9 May 2001, Joel Allen wrote:

> Dear List,
> I would like to plot the diagnostic plots for an anova
> object and the anova table in a single window divided
> into 5 plotting regions.  Plotting the diagnostics is
> simple engough but is there an easy way to plot the
> formatted table of an anova object in the fifth plotting
> region?  I am using v1.2.1 on RH7.  The code I am using
> follows:

You can use a text connection to capture the output of a print command to
a vector of strings (see the example in help(textConnection)) then use
text() to write these strings.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

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