scoremat: Extract scores/loadings

View source: R/5_pca.R

scorematR Documentation

Extract scores/loadings

Description

Extract scores/loadings

Usage

scoremat(object, method = "pca", by = biplot_by(object, method), dim = 1:2)

scores(object, method = "pca", by = biplot_by(object, method), dim = 1)

loadingmat(object, method = "pca", by = biplot_by(object, method), dim = 1:2)

loadings(object, method = "pca", by = biplot_by(object, method), dim = 1)

Arguments

object

SummarizedExperiment

method

'pca', 'pls', etc.

by

svar (string)

dim

numeric vector

Examples

file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
object <- read_metabolon(file)
object %<>% pca()
    scores(object)[1:2]
  loadings(object)[1:2]
  scoremat(object)[1:2, ]
loadingmat(object)[1:2, ]

bhagwataditya/autonomics documentation built on Nov. 1, 2024, 5:47 a.m.