pca_loadings_plot: PCA loadings plot

Description Usage Arguments Value Examples

View source: R/PCA_plotfcns.R

Description

A barchart (one component) or scatter plot (two components) of the selected principal component loadings.

Usage

1
2
3
4
5
6
pca_loadings_plot(
  components = c(1, 2),
  style = "points",
  label_features = NULL,
  ...
)

Arguments

components

(numeric) The principal components used to generate the plot. The default is c(1, 2).

style

(character) Plot style. Allowed values are limited to the following:

  • "points": Loadings and scores are plotted as a scatter plot.

  • "arrows": The loadings are plotted as arrow vectors.

The default is "points".

label_features

(character, NULL) Feature labels. Allowed values are limited to the following:

  • "character()": A vector of labels for the features.

  • "NULL": No labels.

  • "row.names": Labels will be extracted from the column names of the data matrix.

The default is NULL.

...

Additional slots and values passed to struct_class.

Value

A pca_loadings_plot object.

Examples

1

structToolbox documentation built on Nov. 8, 2020, 6:54 p.m.