plotAggregation: General plotting method for Tomahawk aggregation.

Description Usage Arguments Author(s) See Also Examples

Description

Some additional details about this S4 generic and its methods. The extra blank line between this section and the title is critical for roxygen2 to differentiate the title from the description section.

Usage

1
2
3
plotAggregation(x = "twk_agg", colors = "character",
  normalize = "logical", annotate = "logical", legend = "logical",
  ...)

Arguments

x

Instance of a twk object. This is the computed information that is returned from the underlying .Call to Tomahawk. Note that no data is stored in this object in this case.

normalize

Logical flag indicating if the colour scheme should be quantile normalized to even out the ranges.

annote

Logical flag indicating if titles and axes should should be added.

Author(s)

Marcus D. R. Klarqvist <mk819@cam.ac.uk> | <https://mdrk.me>

See Also

twk_data, twk_header, twk_filter, and twk

Examples

1
2
3
4
5
6
7
# This example assumes you have a Tomahawk file called "1kgp3_chr6.two" in
# your current working directory.
twk<-rtomahawk::OpenTomahawkOutput("1kgp3_chr6.two")
x<-aggregate(twk,"r2","count",1000,1000,50,verbose=T,threads=4)
plot(x,normalized=TRUE)
plot(x,normalized=FALSE)
x

mklarqvist/rtomahawk documentation built on May 16, 2019, 5:01 a.m.