ptrvListPCA | R Documentation |
Runs PCA on a data frame stemming from ptrvReadList()
ptrvListPCA(
df,
ionToRemove = NULL,
dataType = "productMeans",
normalizeByEval = FALSE,
log = FALSE,
axes = list(c(1, 2)),
representation = "TwoMaps",
option = "Correlation",
variableName = "ion",
scoreName = "intensity",
expandBiplot = NULL
)
df |
data frame with "ion","intensity","product","subject" columns, |
ionToRemove |
vector of character containing ions to remove from the analysis |
dataType |
"raw" (if PCA should be computed on the whole dataset) or "productMeans" if PCA should be computed on the product mean table |
normalizeByEval |
Boolean. By default TRUE. |
log |
boolean indicated if the intensities should be logged (TRUE) or not (FALSE) |
axes |
list of couples of integers corresponding to the maps to plot |
representation |
"twoMaps" or "distanceBiplot" |
option |
"Correlation" or "Covariance" |
variableName |
column containing the variable names. Default to 'ion' |
scoreName |
column name of the score. Default to 'intensity' |
expandBiplot |
a number corresponding to the expansion of the variables compared to the individuals in the biplot. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.