biplot_corrections: Biplot batch corrections

biplot_correctionsR Documentation

Biplot batch corrections

Description

Biplot batch corrections

Usage

biplot_corrections(
  object,
  method = "pca",
  by = "sample_id",
  color = "subgroup",
  covariates = character(0),
  varcols = ceiling(sqrt(1 + length(covariates))),
  plot = TRUE
)

Arguments

object

SummarizedExperiment

method

'pca', 'pls', 'lda', or 'sma'

by

svar

color

variable mapped to color (symbol)

covariates

covariates to be batch-corrected

varcols

number of covariate columns

plot

TRUE/FALSE: plot?

Value

grid object

See Also

biplot_covariates

Examples

file <- system.file('extdata/atkin.metabolon.xlsx', package = 'autonomics')
object <- read_metabolon(file, pca = TRUE, plot = FALSE)
biplot_corrections(object, color = 'subgroup', covariates = c('Sex', 'Diabetes', 'Subject', 'Time'))

bhagwataditya/importomics documentation built on April 20, 2024, 11:19 p.m.