Learn R Programming

Momocs (version 1.4.1)

ldk_contour: Draws kernel density contours around landmark

Description

Using kde2d in the MASS package.

Usage

ldk_contour(ldk, nlevels = 5, grid.nb = 50, col = "grey60")

Value

a drawing on the last plot

Arguments

ldk

an array (or a list) of landmarks

nlevels

the number of contour lines

grid.nb

the grid.nb

col

a color for drawing the contour lines

See Also

kde2d, ldk_confell, ldk_chull

Other plotting functions: coo_arrows(), coo_draw(), coo_listpanel(), coo_lolli(), coo_plot(), coo_ruban(), ldk_chull(), ldk_confell(), ldk_labels(), ldk_links(), plot_devsegments(), plot_table()

Other ldk plotters: ldk_chull(), ldk_confell(), ldk_labels(), ldk_links()

Examples

Run this code
coo_plot(MSHAPES(wings))
ldk_contour(wings$coo)

Run the code above in your browser using DataLab