Learn R Programming

ChIPseeker (version 1.8.6)

plotDistToTSS.data.frame: plotDistToTSS.data.frame

Description

plot feature distribution based on the distances to the TSS

Usage

plotDistToTSS.data.frame(peakDist, distanceColumn = "distanceToTSS", xlab = "", ylab = "Binding sites (%) (5'->3')", title = "Distribution of transcription factor-binding loci relative to TSS", categoryColumn)

Arguments

peakDist
peak annotation
distanceColumn
column name of the distance from peak to nearest gene
xlab
x label
ylab
y lable
title
figure title
categoryColumn
category column

Value

bar plot that summarize distance from peak to TSS of the nearest gene.

See Also

annotatePeak

Examples

Run this code
## Not run: 
# require(TxDb.Hsapiens.UCSC.hg19.knownGene)
# txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
# peakfile <- system.file("extdata", "sample_peaks.txt", package="ChIPseeker")
# peakAnno <- annotatePeak(peakfile, TxDb=txdb)
# plotDistToTSS(peakAnno)
# ## End(Not run)

Run the code above in your browser using DataLab