Skip to content
Prev 21689 / 398498 Next

plotting only text as a table

On Wed, 10 Jul 2002, Stephan Holl wrote:

            
If you have some lines of text in variable foo you can get a reasonable
start on plotting it with

	plot.new()
	plot.window(xlim=c(0,1),ylim=c(0,1))
	text(0.5,0.5, paste(foo,collapse="\n"))

which will put it centered horizontally and vertically.  You will probably
then need to adjust things.

If you want the text to be the output of an R command and can't figure out
how to construct the text yourself you can capture it in a textConnection.
There is an example in help(textConnection).

	-thomas

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