Description Usage Arguments Value Examples
View source: R/remove_points.R
experimental
Delete points/landmarks from array of 2-D landmark templates
1 2 3 4 5 6 7 |
lmdata |
Array of dimensions p (number of landmarks) x k (dimensionality of data, only 2 allowed) x n (number of specimens) |
points |
You can specify points as numeric vector. If your original templates are standard FRL templates (p=189), you can also specify features by their FRL names (see frl_features) |
relabel_points |
If false, old landmark labels will be retained |
plot |
Plot new landmark templates |
quiet |
Print how many points were deleted |
Array of new dimensions p (reduced number of landmarks) x k x n
1 2 3 4 5 6 7 8 | path_to_tem <- system.file("extdata", "tem", package="facefuns")
data <- read_lmdata(lmdata = path_to_tem,
plot = TRUE)
new_data <- remove_points(lmdata = data,
points = "frlgmm",
plot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.