| C1.hist-class {adegraphics} | R Documentation |
Class C1.hist
Description
A class for the creation and display of a numeric score using a histogram.
Objects from the Class
C1.hist objects can be created by calls of the form new("C1.hist", ...).
The regular usage in this package is to use the s1d.hist function.
Slots
dataa list containing data or data's name.
score: the displayed values in the form of a vector, a factor, a name or a matching call.frame: a positive or null integer. It is the number of the frame containing the data (used withsys.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. IfFALSE, only the names of the data arguments are stored.
trellis.para list of parameters for
latticecall. It will be passed directly topar.settingsarguments of thelatticefunction.adeg.para list of graphical parameters, corresponding to the ones given by
adegpar()function.lattice.calla list to create the
trellisobject.g.argsa list containing some method parameters linked with the created object of
ADEg.C1class. The specific slots forC1.histobjects are:breaks: a vector of values to splitscore. IfNULL,pretty(score, nclass)is used.nclass: an integer for the number of desired intervals, ignored ifbreaksis not missing.type: a value amongcount,density,percentto indicate the unit of the cell height.right: a logical indicating if the histogram cells are right-closed (left open) intervals.
statsa list of internal preliminary calculations. The specific slots for
C1.histobjects are:heights: the cell height.breaks: the cell boundaries.
s.misca list of some others internal parameters
Callan object of class
call
Extends
Class ADEg.C1, directly.
Class ADEg, by class ADEg.C1, distance 2.
Class ADEgORtrellis, by class ADEg.C1, distance 3.
Class ADEgORADEgSORtrellis, by class ADEg.C1, distance 3.
Methods
The methods of the father classes "ADEg.C1" and "ADEg" can be used by inheritance.
The specific methods for C1.hist are:
- prepare
signature(object = "C1.hist"): calls the parent method (prepareforADEg.C1), modifies some graphical parameters used by default and calculates the boundaries and the height of cells.- panel
signature(object = "C1.hist"): draws rectangles.
Author(s)
Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray
See Also
Examples
showClass("C1.hist")