ggPCA: PCA plot based on ggplot2 using the stats::prcomp function

Description Usage Arguments Author(s) Examples

View source: R/ggPCA.R

Description

PCA plot based on ggplot2 using the stats::prcomp function

Usage

1
ggPCA(data, pc = 12, level = 0.68)

Arguments

data

A data frame containing the first collumn as the grouping information

pc

Which PC to present, one of 12, 13, 23, the default value is 12

level

default value is 0.68

Author(s)

ZhonghuiGai

Examples

1
2
3
4
data <- iris
data <- data[, c(5, 1:4)]
colnames(data)[1] <- "group"
ggPCA(data)

ZhonghuiGai/ggpca documentation built on Dec. 18, 2021, 8:28 p.m.