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.
Opn(x, fac = dplyr::tibble(), ldk = list())
an Opn
object
list
of matrices of (x; y) coordinates, or an array, or a data.frame (and friends)
(optionnal) a data.frame
of factors and/or numerics
specifying the grouping structure
(optionnal) list
of landmarks as row number indices
Other classes:
Coe()
,
Coo()
,
Ldk()
,
OpnCoe()
,
OutCoe()
,
Out()
,
TraCoe()
#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 and others
olda
plot_LDA(olda)
Run the code above in your browser using DataLab