ggpcaplot: PCA Scores Plot Using ggplot2 This function is a simple...

Description Usage Arguments Value Author(s)

View source: R/ggpcaplot.R

Description

PCA Scores Plot Using ggplot2

This function is a simple wrapper for plotting two-way scatter plots of principal component scores using GGally::ggpairs.

Usage

1
ggpcaplot(x, npc, labs = NULL, idiag = TRUE)

Arguments

x

a matrix of data (n x p)

npc

an integer number of principal components

labs

labels for the different clusters

idiag

a boolean whether to include

Value

a ggpairs plot of the PC scores

Author(s)

Patrick Kimes


pkimes/pkimes documentation built on May 25, 2019, 8:20 a.m.