[R] Tables in graphics window

Marc Schwartz mschwartz at medanalytics.com
Thu Oct 31 21:20:52 CET 2002

> Hello, I would like to include a table (of rax data, not 
> summary statistics - 
> in case this makes any difference) alongside a plot. I know 
> how to use 
> 'layout' to divide my page into sections, but is it possible 
> to put a table 
> into one of these?
> Thanks!
> Tanya Murphy


Take a look at these two posts from earlier this summer where I provide
some conceptual and coding examples of plotting column aligned/justified
text in a graphics window.

http://www.r-project.org/nocvs/mail/r-help/2002/5760.html (concept)
http://www.r-project.org/nocvs/mail/r-help/2002/5764.html (example code)

The above examples are for a single "main" plot window, but you should
be able to use these approaches in your various plot regions within a
single window.

As I point out in the first post, using demo(graphics) will also give
you some sample code in creating spreadsheet-like cells within the plot
region into which you can plot math symbols, etc.

If you have any follow questions, let me know.

Best regards and HTH,

Marc Schwartz

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