get_coordinates | R Documentation |
Get Coordinates
get_coordinates(x, ...)
get_replications(x, ...)
## S4 method for signature 'MultivariateAnalysis'
get_coordinates(x, margin = 1, principal = TRUE, sup_name = ".sup")
## S4 method for signature 'PCOA'
get_coordinates(x)
## S4 method for signature 'MultivariateBootstrap'
get_replications(x, margin = 1)
## S4 method for signature 'BootstrapPCA'
get_replications(x)
x |
An object from which to get element(s) (a |
... |
Currently not used. |
margin |
A length-one |
principal |
A |
sup_name |
A |
get_coordinates()
returns a data.frame
of coordinates. An extra
column (named after sup_name
) is added specifying whether an observation
is a supplementary point or not.
get_replications()
returns an array
of coordinates.
N. Frerebeau
Other getters:
get_contributions()
,
get_data()
,
get_eigenvalues()
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_row = 5:10)
## Get row principal coordinates
head(get_coordinates(X, margin = 1, principal = TRUE))
## Get row standard coordinates
head(get_coordinates(X, margin = 1, principal = FALSE))
## Tidy principal coordinates
head(tidy(X, margin = 1))
head(tidy(X, margin = 2))
head(augment(X, margin = 1, axes = c(1, 2)))
head(augment(X, margin = 2, axes = c(1, 2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.