Description Usage Arguments Details Examples
View source: R/lipidome_comparison_pca.R
'scree_base' takes a prcomp element and diplays the percentage and the cummulative percentage of variance of variance explained by the principal components in a barplot.
1 2 3 4 5 6 | scree_base(
input_df,
title = c("Scree plot", "Cummulative scree plot"),
scale = FALSE,
out_path = "none"
)
|
input_df |
data frame or matrix. |
title |
vector of strings. Main titles for both plots. Default: c("Scree plot", "Cummulative scree plot") |
scale |
bool. Apply scaling when erforming PCA. Default = FALSE. |
out_path |
string. Path to save plot to png. If out_path is empty, the plot is printed to the device. |
This function takes a prcomp element (i.e. an element generated by the base::prcomp function), and displays the percentage of variance and the cummulative percentage of variance explained by each principal component in a dot- and line graph.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.