plot2PCs: Plot two components of prcomp transform

Description Usage Arguments Author(s)

View source: R/plot_2pcs.R

Description

Plot the first and second components of a prcomp() result in a lighter way than the default biplot.

Usage

1
2
3
4
5
6
7
8
plot2PCs(
  self,
  main = paste0(self$ID, " ", self$parameters$feature, " ",
    self$parameters$short_label, "\nPCs of ", self$dataType),
  col = self$sampleColors,
  pcs = c(1, 2),
  ...
)

Arguments

self

an object of class DataTableWithClasses containing a field prcomp (produced by prcompt function)

main

main title is built by default by can be replaced

col

= self$sampleColors dots are colored according to sample class membership.

...

additional parameters are passed to plot()

pcs=c(1, 2)

the two indices of the principal components to be displayed

Author(s)

Jacques van Helden and Mustafa AbuELQumsan


elqumsan/RNAseqMVA documentation built on March 10, 2021, 8:10 a.m.