plotPCAComponent: Plot original data in PCA space

Description Usage Arguments Value Examples

View source: R/pcatools.R

Description

This visualizes the directionality of the original data in Principal Component Analysis (PCA) space.

Usage

1
plotPCAComponent(mytibble, classes = NULL)

Arguments

mytibble

the data frame to operate on which can only contain numeric values

classes

optional class for each observation in the data frame

Value

a ggplot2 object representing the PCA plot

Examples

1
2
library(datools)
plotPCAComponent(iris[, -5], iris$Species) + theme_minimal()

DoktorMike/datools documentation built on Feb. 28, 2021, 8:39 a.m.