Learn R Programming

RGCxGC (version 1.2.0)

scores: Method plot_scores

Description

`scores` exports the scores matrix of a MPCA object.

Usage

scores(Object)

# S4 method for MPCA scores(Object)

Arguments

Object

a MPCA object

Details

This function takes the whole MPCA object and retrieves the score matrix.

Examples

Run this code

data(MTBLS579)
# MPCA with mean-centered and scaled data
MTBLS579_mpca <- m_prcomp(MTBLS579, center = TRUE)
# Export scores matrix
scores(MTBLS579_mpca)

Run the code above in your browser using DataLab