Learn R Programming

Momocs (version 1.4.1)

panel: Family picture of shapes

Description

Plots all the outlines, side by side, from a Coo (Out, Opn or Ldk) objects.

Usage

panel(x, ...)

# S3 method for Out panel( x, dim, cols, borders, fac, palette = col_summer, coo_sample = 120, names = NULL, cex.names = 0.6, points = TRUE, points.pch = 3, points.cex = 0.2, points.col, ... )

# S3 method for Opn panel( x, cols, borders, fac, palette = col_summer, coo_sample = 120, names = NULL, cex.names = 0.6, points = TRUE, points.pch = 3, points.cex = 0.2, points.col, ... )

# S3 method for Ldk panel( x, cols, borders, fac, palette = col_summer, names = NULL, cex.names = 0.6, points = TRUE, points.pch = 3, points.cex = 0.2, points.col = "#333333", ... )

Value

a plot

Arguments

x

The Coo object to plot.

...

additional arguments to feed generic plot

dim

for coo_listpanel: a numeric of length 2 specifying the dimensions of the panel

cols

A vector of colors for drawing the outlines. Either a single value or of length exactly equal to the number of coordinates.

borders

A vector of colors for drawing the borders. Either a single value or of length exactly equals to the number of coordinates.

fac

a factor within the $fac slot for colors

palette

a color palette

coo_sample

if not NULL the number of point per shape to display (to plot quickly)

names

whether to plot names or not. If TRUE uses shape names, or something for fac_dispatcher

cex.names

a cex for the names

points

logical (for Ldk) whether to draw points

points.pch

(for Ldk) and a pch for these points

points.cex

(for Ldk) and a cex for these points

points.col

(for Ldk) and a col for these points

See Also

Other Coo_graphics: inspect(), stack()

Examples

Run this code
panel(mosquito, names=TRUE, cex.names=0.5)
panel(olea)
panel(bot, c(4, 10))
# an illustration of the use of fac
panel(bot, fac='type', palette=col_spring, names=TRUE)

Run the code above in your browser using DataLab