Learn R Programming

diffloop (version 1.0.2)

pcaPlot: Visualize sample relationships

Description

pcaPlot takes a loops object plots the individual samples based on the principal components of the loop counts matrix

Usage

pcaPlot(dlo)

## S3 method for class 'loops': pcaPlot(dlo)

Arguments

dlo
A loops object

Value

  • A ggplot2 plot

Details

Groups for the principal component plots are derived from colData and the normalizing factors are also taken from colData. While some loops objects may have non-informative groups or size factors, they should always be present.

Examples

Run this code
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
p1 <- pcaPlot(loops.small)

Run the code above in your browser using DataLab