plotPCAscores: plotPCAscores

View source: R/plotPCAscores.R

plotPCAscoresR Documentation

plotPCAscores

Description

Creates a PCA score plot using ggplot.

Usage

plotPCAscores(df, prc)

Arguments

df

Dataframe with the principal components to be plotted in the first two columns, and a group column to color by.

prc

A vector with the percentage the principal components contribute, to be used for x and y axis titles.

Value

A ggplot PCA score plot.


AslaugL/thesisToolsOmics documentation built on April 3, 2022, 8:16 p.m.