Learn R Programming

Momocs (version 0.2-03)

coo.list.panel: Plots sets of shapes.

Description

coo.list.panel plots a list of shapes if passed with a list of coordinates. Outlines are templated and on the same graphical window with the help of coo.template.

Usage

coo.list.panel(coo.list, dim,
               byrow = TRUE, fromtop = TRUE,
               mar = rep(0, 4), cols, borders, density = NULL, angle = 45)

Arguments

coo.list
A list of coordinates, such as those in the @coo slot of Coo objects.
dim
A vector of the form (nb.row, nb.cols) to specify the panel display. If missing, shapes are arranged in a square.
byrow
logical. Whether to succesive shape by row or by col.
fromtop
logical. Whether to display shapes from the top of the plotting region.
mar
A vector to define margins.
cols
A vector of colors to fill shapes.
borders
A vector of colors to draw shape borders.
density
A vector for density of shading lines. See polygon
angle
A vector for shading lines.

Value

  • Returns (invisibly) a data.frame with position of shapes that can be used for other sophisticated plotting design.

See Also

coo.plot and coo.template.

Examples

Run this code
data(bot)
coo.list.panel(bot@coo)
x <- coo.list.panel(bot@coo)
x # positions of shapes returned invisibly 
# axis(1) ; axis(2) # that's a single graphical window ;)

Run the code above in your browser using DataLab