Usage Arguments Value Examples
1 | ade4_to_mvar(ade4_object, tables_to_include)
|
ade4_object |
The output of a call to dudi.* from package |
tables_to_include |
A character vector specifying which projections in
the |
mvar_table An object of class mvarTable, storing the tables specified
in tables_to_include
and the eigenvalues from the ade4
decomposition. The annotation slots of each mVarLayer are the row names of
the projected coordinates.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library("ade4")
data(USArrests)
arrests_pca <- dudi.pca(USArrests, scannf = FALSE, nf = 2)
ade4_to_mvar(arrests_pca, c("li", "co"))
arrests_pco <- dudi.pco(dist(USArrests), scannf = FALSE, nf = 2)
ade4_to_mvar(arrests_pco, c("li", "co"))
# Example taken from coinertia() in ade4 package
data(doubs)
dudi1 <- dudi.pca(doubs$env, scale = TRUE, scan = FALSE, nf = 3)
dudi2 <- dudi.pca(doubs$fish, scale = FALSE, scan = FALSE, nf = 2)
coin1 <- coinertia(dudi1,dudi2, scan = FALSE, nf = 2)
ade4_to_mvar(coin1, tables_to_include = c("li", "co", "aX", "aY"))
@export
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.