get_coordinates {dimensio} | R Documentation |
Get Coordinates
Description
Get Coordinates
Usage
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 'MultivariateBootstrap'
get_replications(x, margin = 1)
## S4 method for signature 'BootstrapPCA'
get_replications(x)
Arguments
x |
An object from which to get element(s) (a |
... |
Currently not used. |
margin |
A length-one |
principal |
A |
sup_name |
A |
Value
-
get_coordinates()
returns adata.frame
of coordinates. An extra column (named aftersup_name
) is added specifying whether an observation is a supplementary point or not. -
get_replications()
returns anarray
of coordinates.
Author(s)
N. Frerebeau
See Also
Other mutators:
dimnames()
,
get_contributions()
,
get_data()
,
get_distances()
,
get_eigenvalues()
,
loadings()
,
subset()
Examples
## 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)))