pcaScorePlot: Score plots

View source: R/pcaScorePlot.R

pcaScorePlotR Documentation

Score plots

Description

Produces rich score plots from pcaBySvd with the same graphical options as plotScatter.

Usage

pcaScorePlot(
  resPcaBySvd,
  axes = c(1, 2),
  title = "PCA score plot",
  points_labs_rn = FALSE,
  ...
)

Arguments

resPcaBySvd

A list corresponding to the output value of pcaBySvd.

axes

A numerical vector with the 2 Principal Components axes to be drawn.

title

Plot title.

points_labs_rn

Boolean indicating if the rownames of the scores matrix should be plotted.

...

Additional arguments to be passed to plotScatter.

Details

pcaScorePlot is a wrapper of plotScatter.

Value

A PCA score plot (ggplot).

Examples


data('UCH')
ResPCA = pcaBySvd(UCH$outcomes)

pcaScorePlot(resPcaBySvd = ResPCA, axes = c(1,2),
title = "PCA score plot UCH", design = UCH$design,
color = "Hippurate", shape = "Citrate")


bgovaerts/LMWiRe documentation built on Sept. 17, 2022, 12:32 a.m.