Learn R Programming

Momocs (version 1.2.9)

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 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
# NOT RUN {
coo_plot(mshapes(wings))
ldk_contour(wings$coo)
# }

Run the code above in your browser using DataLab