View source: R/morph_nds_group.R
morph_nds_group | R Documentation |
Momocs package morphometrics classification (groups) between different graphical units (GUs). Read JPG files from each different folder. Useful after comparisons (see, 'morph_nds_compar' function)
morph_nds_group(
nodes = NA,
gu.types = "all",
focus = c("kmeans"),
nb.h = 15,
nb.centers = 1,
cex = 4,
lwd = 1.5,
dataDir = system.file("extdata", package = "iconr"),
out.dir = "_out",
out.data = c("mbrshp", "plot"),
verbose = TRUE
)
nodes |
Dataframe of nodes. |
gu.types |
Classes of nodes that will be clustered, a vector of characters or a character. By default "all". |
focus |
Type of grouping, Kmeans ("kmeans"). By default, c("kmeans"). |
nb.h |
Number of Fourier harmonics, uniquely for PCA. By default = 15. |
nb.centers |
Number of clusters, uniquely for Kmeans. By default 1 (unique cluster). |
cex |
Size of the text, by default 1. |
lwd |
Width of the dendrogram branches, by defaul 1. |
dataDir |
Path to the folder. |
out.dir |
Name of output folder. |
out.data |
Type of data returned. If "mbrshp" return a dataframe of nodes with their clustering and image path. If "plot" return a "kmeans" or create a plot. By default c("mbrshp", "plot"). |
verbose |
if TRUE (by default), verbose. |
Depending on the focus, creates plots (ex: Kmeans ("kmeans")), print their complete paths, return the Kmeans membership in a dataframe.
morph_nds_group(nodes)
## [1] "* read 'oeil' typo"
## Extracting 10.jpg outlines...
## [ 1 / 10 ] Ain Ghazal.stat_2.1.jpg
## ...
## [ 10 / 10 ] Qarassa.figurine__wx.14.jpg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.