adegraphics-package: Graphical objects for ade4 functions (and more)

adegraphics-packageR Documentation

Graphical objects for ade4 functions (and more)

Description

This package was created to replace graphics functionalities of the ade4 package and to offer customizable representations of data and result analysis.

Graphics are objects of S4 class, which can be displayed but also stored for latter modifications. Those modifications can be graphical changes, but also superposition or juxtaposition of various graphical objects (creating an other type of object). Each object will contain graphical parameters and instructions for the display (calls, positions, etc.) and the data set used. Sometimes data is heavy, due to its size for example. Two storing systems exist:

  • full storage: data is assigned to an object's slot.

  • names and position: data names (as a string, obtained using deparse(substitute)) and their frame position (using sys.nframe()) are stored. Then the full data can be retrieve with those two informations (and only if the data objects are still in the environment)

This new system is based on the lattice package and grid graphics.

Details

A lot of classes were implemented. Two superclass structures the architecture in class. Simple and complex graphics are distinguished in the former version:

  • ADEg class provides simple graphics using one kind of data (most of a time, only a data frame) and one representation method (points, labels, arrows...)

  • ADEgS class provides complex graphics making juxtaposition, superposition and/or insertion of several simple graphics.

5 subclasses inherits from the superclass abstract ADEg:

  • ADEg.S1: one-dimensional plot

  • ADEg.S2: bi-dimensional plot

  • ADEg.C1: one-dimensional data plotted in 2-D

  • ADEg.T: table plot

  • ADEg.Tr: triangle plot

References

Aurélie Siberchicot, Alice Julien-Laferrière, Anne-Béatrice Dufour, Jean Thioulouse and Stéphane Dray (2017). adegraphics: An S4 Lattice-Based Package for the Representation of Multivariate Data. The R Journal. 9:2. 198–212. https://journal.r-project.org/archive/2017/RJ-2017-042/index.html

See Also

lattice ADEg ADEgS

Examples

  showClass("ADEg")
  showClass("ADEgS")

adegraphics documentation built on Oct. 13, 2023, 5:11 p.m.