Learn R Programming

Momocs (version 0.2-03)

hcontrib: Calculates and displays the contribution of every harmonic.

Description

hcontrib applies amp.h values for each of the harm.range harmonics when reconstruction shapes. This thus help to visualize the respective contribution of every harmonic, in other words their contribution in describing shapes.

Usage

hcontrib(Coe, id = 1, harm.range = 1:floor(Coe@nb.h / 4), amp.h   = c(0, 0.5, 1, 2, 5, 10),
                     palette = col.sari, title   = "Harmonic contribution")

Arguments

Coe
The Coe object
id
integer. The id of the shape to display. A range of ids can be passed to harm.pow
harm.range
A vector of integer giving the harmonic range to calculate. See nb.h for harm.pow.
amp.h
A vector of numeric to specify the amplification factors to use.
palette
A color palette such those included in Momocs or produced with colorRampPalette.
title
A characterto use as the title.

Value

  • No returned value.

Examples

Run this code
#FILL

Run the code above in your browser using DataLab