Graphical objects for ade4 functions (and more)


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.


Package: adegraphics
Type: Package
Version: 1.0-5
Date: 2016-03-02
License: GPL (>=2)
Depends: ade4, grDevices, grid, KernSmooth, lattice, methods, RColorBrewer, sp

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


Alice Julien-Laferriere, Aurelie Siberchicot and Stephane Dray


See ade4 website: <URL:>

See Also

lattice ADEg ADEgS



Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus