Could anyone provide me a function to plot text tables (formatted) in a graphical device (ie postcript) ??? Thanks in advance Michael -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>From owner-r-help at stat.math.ethz.ch Tue Nov 13 12:07:32 2001 >Could anyone provide me a function to plot text tables (formatted) >in a graphical device (ie postcript) ???If you mean you want to print the table, the xtable package in CRAN will make very nice LaTeX output of a table. Then use LaTeX to convert that to PostScript (through dvi - although dvi itself may be useful as a substitute a Power-Point-type presentation, using xdvi full screen). If you mean that you want a graph of the contents of the table, just try plot(table(...)), or perhaps plot.table(). I was amazed to see what happened when I did this. It is a truly clever idea, and I had never seen it before. Jon Baron -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
At 17:32 13/11/01 +0100, Miguel Angel Merino Alonso wrote:>Could anyone provide me a function to plot text tables (formatted) >in a graphical device (ie postcript) ??? > >Thanks in advance > >MichaelI am not sure there is a function designed to do that. You can play with plot(..., type="n"), and text(), e.g.: # generate a table of Poisson counts table(rpois(100,5)) -> tt n <- length(tt) # the following plot() command gives a blank device but sets the axes # you may adjust the ylim option for your precise need plot(1:n, type="n", xaxt="n", yaxt="n", xlab="", ylab="", ylim=c(1, 2), bty="n") # here also you may adjust the "1.5", "1.3", and "1.4" for your data text(1:n, rep(1.5, n), dimnames(tt)[[1]]) text(1:n, rep(1.3, n), as.character(tt)) abline(h=1.4) Hope this helps. Emmanuel Paradis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._