Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ggindplot

Individual factor map for rpca using ggplot.


Description

Creates a pretty plot which is showing the individual factor map, i.e, plotting the principal component scores.

Usage

ggindplot(
  rpcaObj,
  pcs = c(1, 2),
  groups = NULL,
  alpha = 0.6,
  ellipse = TRUE,
  alpha.ellipse = 0.2,
  ind_labels = TRUE,
  ind_labels.names = NULL
)

Arguments

rpcaObj

Object returned by the rpca function.

pcs

Array_like.
An array with two values indicating the two PCs which should be used for plotting. By default the first two PCs are used, e.g., c(1,2).

groups

Factor, optional.
Factor indicating groups.

alpha

Scalar, optional.
Alpha transparency for scatter plot.

ellipse

Bool (TRUE, FALSE), optional.
Draw a 1sd data ellipse for each group, if TRUE.

alpha.ellipse

Scalar, optional.
Alpha transparency for ellipse.

ind_labels

Bool (TRUE, FALSE), optional.
Plot names for each individual point, if TRUE.

ind_labels.names

Array_like, optional.
User specific labels for the individual points.

Author(s)

N. Benjamin Erichson, erichson@berkeley.edu

See Also

Examples

#See ?rpca

rsvd

Randomized Singular Value Decomposition

v1.0.5
GPL (>= 3)
Authors
N. Benjamin Erichson [aut, cre]
Initial release
2021-04-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.