biplot {autonomics} | R Documentation |
Biplot
biplot( object, x = pca1, y = pca2, color = NULL, group = NULL, label = NULL, feature_label = feature_name, ..., fixed = list(shape = 15, size = 3), nloadings = 0 ) plot_biplot(...)
object |
SummarizedExperiment |
x |
pca1, etc. |
y |
pca2, etc. |
color |
svar mapped to color (symbol) |
group |
svar mapped to group |
label |
svar mapped to label (symbol) |
feature_label |
fvar mapped to (loadings) label |
... |
additional svars mapped to aesthetics |
fixed |
fixed plot aesthetics |
nloadings |
number of loadings per half-axis to plot |
ggplot object
require(magrittr) file <- download_data('atkin18.metabolon.xlsx') object <- read_metabolon(file, plot = FALSE) object %<>% pca(ndim=4) biplot(object) biplot(object, color=SUB, group=SUB) biplot(object, color=SUB, nloadings=1) biplot(object, pca3, pca4, color=SUB, nloadings=1)