Learn R Programming

Momocs (version 1.1.6)

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 OutCoe panel(x, nb.pts = 120, ...)

# 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", ...)

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, a column name or number from $fac can be supllied, or even a character of the same length of the Coo
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
nb.pts
the number of points to use for the shape reconstruction

See Also

Other Coo_graphics: panel2, plot.Coo, stack.Coo

Examples

Run this code
data(mosquito)
panel(mosquito, names=TRUE, cex.names=0.5)
data(olea)
panel(olea)
data(bot)
panel(bot, c(4, 10))
bot.f <- efourier(bot, 12)
panel(bot.f)
# 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