Description Usage Arguments Value Author(s) See Also Examples
View source: R/plotDistToTSS.R
plot feature distribution based on the distances to the TSS
1 2 3 4 5 6 7 8  | plotDistToTSS.data.frame(
  peakDist,
  distanceColumn = "distanceToTSS",
  xlab = "",
  ylab = "Binding sites (%) (5'->3')",
  title = "Distribution of transcription factor-binding loci relative to TSS",
  categoryColumn
)
 | 
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  | 
bar plot that summarize distance from peak to TSS of the nearest gene.
Guangchuang Yu https://guangchuangyu.github.io
1 2 3 4 5 6 7 8  | ## 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.