plotPC: PCA Visualization

View source: R/Plot_PCA.R

plotPCR Documentation

PCA Visualization

Description

This function is a part of the data analysis functionality of tcgaCleaneR. It helps to visualize the PCs from get.pca.

Usage

plotPC(pca.data, data, group, plot_type, pcs.no)

Arguments

pca.data

list: PCA output from computePCA.

data

S4 data object

group

character: Color code PCs based on group. groups included are 'Time', 'Tissue', 'Plate', 'TSS', 'Center'

plot_type

character: Plot type

pcs.no

numeric vector: PCs that needs to be plotted

Value

Density Plot, Box Plot

Examples

## Not run: 
plotPC(pca.data, data = brca.data, group = "Time", plot_type = "DensityPlot", pcs.no = c(1,2,3))
plotPC(pca.data = df6, data = brca.data, group = "Plate", plot_type = "BoxPlot", pcs.no = c(1,2,4))

## End(Not run)

AbhishekSinha28/tcgaCleaneR documentation built on May 6, 2022, 6:46 a.m.