Description Usage Arguments Value See Also Examples
Plots changes in PCA space according to time. All the observations of a single subject are connected by an arrow ending at the last observation.
1 2 3 4 |
object |
a MetaboSet object |
all_features |
logical, should all features be used? If FALSE (the default), flagged features are removed before visualization. |
center |
logical, should the data be centered prior to PCA? (usually yes) |
scale |
scaling used, as in pcaMethods::prep. Default is "uv" for unit variance |
color |
character, name of the column used for coloring the arrows |
time |
character, name of the column containing timepoints |
subject |
character, name of the column containing subject identifiers |
alpha |
numeric, value for the alpha parameter of the arrows (transparency) |
arrow_style |
a description of arrow heads, the size and angle can be modified, see |
title, subtitle |
the titles of the plot |
color_scale |
the color scale as returned by a ggplot function |
... |
additional arguments passed to pcaMethods::pca |
a ggplot object.
1 2 3 4 | plot_pca_arrows(drop_qcs(example_set))
# If the sample size is large, plot groups separately
plot_pca_arrows(drop_qcs(example_set)) +
facet_wrap(~ Group)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.