| tidy | R Documentation | 
Tidy Coordinates
tidy(x, ...)
augment(x, ...)
## S4 method for signature 'MultivariateAnalysis'
augment(x, ..., margin = 1, axes = c(1, 2), principal = TRUE)
## S4 method for signature 'MultivariateAnalysis'
tidy(x, ..., margin = 1, principal = TRUE)
| x | A  | 
| ... | Currently not used. | 
| margin | A length-one  | 
| axes | A length-two  | 
| principal | A  | 
tidy() returns a long data.frame with the following columns:
labelRow/column names of the original data.
componentComponent.
supplementaryWhether an observation is active or supplementary.
coordinateCoordinates.
contributionContributions to the definition of the components.
cos2cos^2.
augment() returns a wide data.frame of the row/column coordinates
along axes and the following columns:
labelRow/column names of the original data.
supplementaryWhether an observation is active or supplementary.
massWeight/mass of each observation.
sumSum of squared coordinates along axes.
contributionJoint contributions to the definition of axes.
cos2Joint cos^2 along axes.
N. Frerebeau
Other summary: 
describe(),
summary()
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_row = 5:10, sup_quali = "Species")
## 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.