[R] Graphical table in R
apjaworski@mmm.com
apjaworski at mmm.com
Mon Jan 10 23:09:51 CET 2005
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: apjaworski at mmm.com
Tel: (651) 733-6092
Fax: (651) 736-3122
Thomas Lumley
<tlumley at u.washin
gton.edu> To
Sent by: Peter Dalgaard
r-help-bounces at st <p.dalgaard at biostat.ku.dk>
at.math.ethz.ch cc
MSchwartz at medanalytics.com, R list
<r-help at stat.math.ethz.ch>
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
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list