pcaR2plot: Automatic R2 plot

Description Usage Arguments Details

View source: R/pcaR2plot.R

Description

Plots fraction of explained variance for PCA components and some additonal explanatory variables

Usage

1
2
pcaR2plot(pca, df, selvars = colnames(df), comps = NULL,
  scaled = FALSE, col = NULL, ...)

Arguments

pca

prcomp object

df

data frame containing predictors

selvars

names of the columns from data frame to choose as predictors

comps

for which PCA components (or for which columns of the numeric matrix) the correlations should be plotted

scaled

whether the data should be scaled

col

colors to use for the different predictors

...

additional parameters to be passed to plotting functions such as pch or lty

Details

Plots fraction of explained variance for PCA components and some additonal explanatory variables


january3/myfuncs documentation built on April 1, 2020, 4:42 a.m.