biplot_corrections | R Documentation |
Biplot batch corrections
biplot_corrections(
object,
method = "pca",
by = "sample_id",
color = "subgroup",
covariates = character(0),
varcols = ceiling(sqrt(1 + length(covariates))),
plot = TRUE
)
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? |
grid object
biplot_covariates
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'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.