Learn R Programming

Momocs (version 1.0.0)

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")

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 ldk plotters: ldk_chull, ldk_confell, ldk_labels, ldk_links

Other plotting functions: Ntable, conf_ell, coo_arrows, coo_draw, coo_listpanel, coo_lolli, coo_plot, coo_ruban, ldk_chull, ldk_confell, ldk_labels, ldk_links, plot_devsegments

Examples

Run this code
data(wings)
coo_plot(mshapes(wings))
ldk_contour(wings$coo)

Run the code above in your browser using DataLab