Learn R Programming

RFmarkerDetector (version 1.0.1)

plot.pca.loadings: PCA Loadings plot This function plots the relation between the original variables and the subspace dimensions. It is useful for interpreting relationships among variables.

Description

PCA Loadings plot This function plots the relation between the original variables and the subspace dimensions. It is useful for interpreting relationships among variables.

Usage

"plot"(pca_obj, nvar)

Arguments

pca_obj
an object of class pca
nvar
the number of variables to plot
...
optional graphical parameters

Examples

Run this code
## data(cachexiaData)
## pca_obj <- pca(cachexiaData, autoscale = TRUE, exclude = TRUE) 
## plot.pca.loadings(pca_obj, nvar = 20) 

Run the code above in your browser using DataLab