The outer two lines could also be done more easily (?) by:
library(gplots) #part of gregmisc bundle
textplot(txt)
Check ?textplot for additional options.
Andy
__________________________________
Andy Jaworski
518-1-01
Process Laboratory
3M Corporate Research Laboratory
-----
E-mail: [EMAIL PROTECTED]
Tel: (651) 733-6092
Fax: (651) 736-3122
Thomas Lumley
<[EMAIL PROTECTED]
gton.edu> To
Sent by: Peter Dalgaard
[EMAIL PROTECTED] <[EMAIL PROTECTED]>
at.math.ethz.ch cc
[EMAIL PROTECTED], R list
<[email protected]>
01/10/2005 03:28 Subject
PM Re: [R] Graphical table in R
On Mon, 10 Jan 2005, Peter Dalgaard wrote:
> A screen shot of a ps file? That sounds ... weird. If you can view it,
> presumably you have Ghostscript and that can do png files.
>
> However, will textual output do?
>
> plot(0,type="n",axes=FALSE, xlab="", ylab="")
> con <- textConnection("txt","w")
> sink(con); ftable(UCBAdmissions); sink()
> close(con)
> par(family="mono")
> text(1,0,paste(txt,collapse="\n"))
>
and the middle three lines could also be done with
txt<-capture.output(ftable(UCBAdmissions))
-thomas
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html