[R] Display a contingency table on the X11 device

Dennis Murphy djmuser at gmail.com
Wed Oct 5 22:23:33 CEST 2011


Hi:

One option is the gridExtra package - run the example associated with
the tableGrob() function. Another is the addtable2plot() function in
the plotrix package. I'm pretty sure there's at least one other
package that can do this; I thought it was in the gplots package, but
couldn't find one that I think should apply. Perhaps others can chime
in...

Dennis

On Wed, Oct 5, 2011 at 6:08 AM, Parker Jones <zoubidoo at hotmail.com> wrote:
>
> Hello,
>
> I'd like to output a table to the x11 device, but I can't seem to find an easy way to do it.  Specifically, I'd like to display a 2x2 contingency table alongside a graphical plot, but can only see how to output to the console.  Is there a library that can do this?
>
> Thanks for any suggestions,
> Parker
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list