Usage
hquant(Coo, method = c("efourier", "rfourier", "tfourier"),
id = 1, smooth.it = 0, harm.range = seq(4, 20, 4),
norm.centsize = TRUE,
dist.method = edm.nearest, dist.nbpts = 120,
plot = TRUE, dev.plot = TRUE, title = "Deviations along the outline",
legend = TRUE, legend.title = "# harmonics",
palette = col.summer, lineat.y = c(0.5, 0.1, 0.01))
Arguments
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 id
s 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
.
norm.centsize
logical
. Whether to normalize distances by the centroid size of every outline.
dist.nbpts
integer
. The number of points to sample along the outlines to calculate the deviations. It can be set to "max" and the maximum number of points will be used, e.g. twice the number of the highest possible number of harmonics on the outline(s)
plot
logical
. Whether to plot or not the shape. If FALSE
, only the results are returned.
dev.plot
logical
. Whether to plot or not the deviation plot.
title
A title for the plot.
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. lineat.y
A vector
of numeric
to specify where to plot dashed lines on the y-axis.