Learn R Programming

Momocs (version 1.2.9)

Opn: Builds an Opn object

Description

In Momocs, Opn classes objects are lists of open outlines, with optionnal components, on which generic methods such as plotting methods (e.g. stack) and specific methods (e.g. npoly can be applied. Opn objects are primarily Coo objects.

Usage

Opn(x, fac = dplyr::data_frame(), ldk = list())

Arguments

x

list of matrices of (x; y) coordinates

fac

(optionnal) a data.frame of factors and/or numerics specifying the grouping structure

ldk

(optionnal) list of landmarks as row number indices

Value

an Opn object

See Also

Other classes: Coe, Coo, OpnCoe, OutCoe, Out, TraCoe

Examples

Run this code
# NOT RUN {
#Methods on Opn
methods(class=Opn)
# we load some open outlines. See ?olea for credits
olea
panel(olea)
# orthogonal polynomials
op <- opoly(olea, degree=5)
# we print the Coe
op
# Let's do a PCA on it
op.p <- PCA(op)
plot(op.p, 'domes')
plot(op.p, 'var')
# and now an LDA after a PCA
olda <- LDA(PCA(op), 'var')
# for CV table
olda
plot(olda)
# }

Run the code above in your browser using DataLab