Skip to contents

A class for the representation of a contingency table object with statistical information (mean and regression lines).

Objects from the Class

T.cont objects can be created by calls of the form new("T.cont", ...).

The regular usage in this package is to use the table.value function with a table object.

Slots

data:

a list containing data or data's name.

  • dftab: a contingency table object in the form of a data frame, a name or a matching call

  • coordsx: an integer or a vector indicating the columns of dftab kept

  • coordsy: an integer or a vector indicating the rows of dftab kept

  • labelsx: the columns' labels

  • labelsy: the rows' labels

  • "frame: a positive or null integer. It is the number of the frame containing the data (used with sys.frame(..., env = data$frame)). Only if the data are not stored (i.e. data$storeData = FALSE).

  • storeData: a logical indicating if the data should be stored in the returned object. If FALSE, only the names of the data arguments are stored.

trellis.par

a list of parameters for lattice call. It will be passed directly to par.settings arguments of the lattice function.

adeg.par

a list of graphical parameters, corresponding to the ones given by adegpar() function.

lattice.call

a list to create the trellis object.

g.args

a list containing some method parameters linked with the created object of T.value class. The specific slots for T.cont objects are:

  • meanX: a logical to represent columns' means by points.

  • meanY: a logical to represent rows' means by points.

  • ablineX: a logical to represent columns' regression lines.

  • ablineY: a logical to represent columns' regression lines.

stats

a list of internal preliminary calculations

s.misc

a list of some others internal parameters

Call

an object of class call

Extends

Class T.value, directly.
Class ADEg.T, by class T.value, distance 2.
Class ADEg, by class T.value, distance 3.
Class ADEgORtrellis, by class T.value, distance 4.
Class ADEgORADEgSORtrellis, by class T.value, distance 4.

Methods

The methods of the father classes "T.value", "ADEg.T" and "ADEg" can be used by inheritance. The specific methods for T.cont are:

panel

signature(object = "T.cont"): draws mean points and regression lines.

Author

Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray

Examples

showClass("T.cont")
#> Class "T.cont" [package "adegraphics"]
#> 
#> Slots:
#>                                                                        
#> Name:          data  trellis.par     adeg.par lattice.call       g.args
#> Class:         list         list         list         list         list
#>                                              
#> Name:         stats       s.misc         Call
#> Class:         list         list         call
#> 
#> Extends: 
#> Class "T.value", directly
#> Class "ADEg.T", by class "T.value", distance 2
#> Class "ADEg", by class "T.value", distance 3
#> Class "ADEgORtrellis", by class "T.value", distance 4
#> Class "ADEgORADEgSORtrellis", by class "T.value", distance 4