plot_accumulation: Plots the accumulation vector obtained with the accumulation...

Description Usage Arguments Value Examples

View source: R/plot_accumulation.R

Description

For each chromosome base (x axis), this function plots the value of accumulation (y axis) calculated with the accumulation function. The plot is saved in a ".png" file. If the accumulation input was found with chr = "all", the chromosomes (one or more) to be considered can be chosen.

Usage

1

Arguments

accumulation

a list of four elements, as the output of the accumulation function, containing: a sparse vector with accumulation values, the accumulation type, a chromosome name, and the half-width of the window used for the accumulation count.

chr

optional argument, needed if the accumulation input was found with chr = "all"; a string or a vector containing strings with the name of the chromosome(s) (e.g., "chr1" or c("chr1", "chr4")) to be considered.

Value

None, the function is invoked for its side effect.

Examples

1
2
3
4
5
# loading dataset
data("data_man")
# TF_acc_w_0 is in the data_man collection of datasets
# plot accumulation vector
plot_accumulation(TF_acc_w_0)

TFHAZ documentation built on Nov. 8, 2020, 5:05 p.m.