[R] plot(table..) using pairs

Phil P.Atkinson at cdsc.nthames.nhs.uk
Fri Mar 1 11:28:23 CET 2002


I'm trying to visualise relationships between a number of categorical
variables with values 0 and 1. 

Plot(table(x,y))

 ..works well for one relationship, so I want to use this to examine all
relationships using pairs function. 

pairs(data_array, upper.panel=panel.tab)

where

panel.tab <- function (x,y)
 {
 plot(tables(x,y))
 }

..produces the error..

Error in pairs.default(a, upper.panel = panel.tab) : 
        The panel function made a new plot

Can anyone help..?? Many thanks

Phil.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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