Learn R Programming

Momocs (version 1.1.6)

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 = 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 Coo objects: Coo, Out

Examples

Run this code
#Methods on Opn
methods(class=Opn)
# we load some open outlines. See ?olea for credits
data(olea)
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