C1.density-class: Class 'C1.density'

Description Objects from the Class Slots Extends Methods Author(s) See Also Examples


A class for the creation and display of a numeric score using density curves.

Objects from the Class

C1.density objects can be created by calls of the form new("C1.density", ...).

The regular usage in this package is to use the s1d.density function.



a list containing data or data's name.

  • score: the displayed values in the form of a numeric vector, a name or a matching call.

  • fac: a factor for score to split 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 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.


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


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


a list to create the trellis object.


a list containing some method parameters linked with the created object of ADEg.C1 class. The specific slots for C1.density objects are:

  • kernel, bandwidth and gridsize: passed in parameters in bkde function of the KernSmooth package.

  • fill: a logical to yield the polygons density curves filled.

  • col: a logical, a color or a colors vector to color labels, rugs, lines and polygons.


a list of internal preliminary calculations. The specific slot for C1.density objects is:

  • densit: the values of density curve calculated for each factor in fac computes with the bkde function of the KernSmooth package.


a list of some others internal parameters. The specific slot for C1.density objects is:

  • rug: an index value indicating where the rugs are drawn


an object of class call


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.


The methods of the father classes "ADEg.C1" and "ADEg" can be used by inheritance. The specific methods for C1.density are:


signature(object = "C1.density"): calls the parent method (prepare for ADEg.C1), modifies some graphical parameters used by default and calculates the density curves according to the numeric score and the values' categories.


signature(object = "C1.density"): draws density curves.


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

See Also

ADEg ADEg.C1 s1d.density



Example output

Class "C1.density" [package "adegraphics"]

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

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

adegraphics documentation built on Sept. 16, 2021, 5:07 p.m.