Learn R Programming

Momocs (version 0.2-6)

hqual: Displays how shapes are described with a given number of harmonics.

Description

hqual is used to calculate and displays reconstructed shapes using a range of harmonic number.

Usage

hqual(Coo, method = c("efourier", "rfourier", "tfourier"),
                 id = sample(Coo@coo.nb, 1), smooth.it = 0,
                 harm.range = c(1, 2, 4, 8, 16, 32),
                 scale = TRUE, center = TRUE, align = TRUE,
                 plot.method = c("stack", "panel")[1], legend = TRUE,
                 legend.title = "# harmonics",
                 palette = col.summer, shp.col = "#70809033",
                 shp.border = "#708090EE")

Arguments

Coo
The Coo object
method
A character, either "efourier", "rfourier" or "tfourier" (partial matches are allowed) to use to calculate morphological that indicates which method to use.
id
integer. The id of the shape to display. A range of ids can be passed to harm.pow
smooth.it
integer. The number of smoothing iteration to perform.
harm.range
A vector of integer giving the harmonic range to calculate. See nb.h for harm.pow.
scale
logical. Whether to scale or not the shape.
center
logical. Whether to center or not the shape.
align
logical. Whether to align or not the shape.
plot.method
A plot method to use, either stack or panel.
legend
logical. Whether to display a legend box.
legend.title
character. A title for the legend box.
palette
A color palette such those included in Momocs or produced with colorRampPalette.
shp.col
A color for the shape body.
shp.border
A color for the shape border.

Value

  • No value returned.

Examples

Run this code
data(bot)
hqual(bot)

Run the code above in your browser using DataLab