plotTargetAnnotation-methods: Plot annotation categories from annotationByGenicParts or...

Description Usage Arguments Value Examples

Description

This function plots a pie or bar chart for showing percentages of targets annotated by genic parts or other query features.

Usage

1
2
  plotTargetAnnotation(x,precedence=TRUE,col=rainbow(length(x@annotation)),
    ...)

Arguments

x

an annotationByFeature or an annotationByGenicParts object

precedence

TRUE|FALSE. If TRUE there will be a hierachy of annotation features when calculating numbers (with promoter>exon>intron precedence). This option is only valid when x is a annotationByGenicParts object

col

a vector of colors for piechart or the bar plot

...

graphical parameters to be passed to pie or barplot functions

Value

plots a piechart or a barplot for percentage of the target features overlapping with annotation

Examples

1
2
3
4
data(methylKit)
gene.obj=read.transcript.features(system.file("extdata", "refseq.hg18.bed.txt", package = "methylKit"))
ann=annotate.WithGenicParts(methylDiff.obj, gene.obj)
plotTargetAnnotation(ann,precedence=FALSE)

vd4mmind/methylkit documentation built on May 3, 2019, 4:57 p.m.