plotMode: Plot mode fragment size

Description Usage Arguments Value Author(s) Examples

View source: R/plotMode.R

Description

Plot mode fragment size

Usage

1
plotMode(x, order, type, mincount, hline, ...)

Arguments

x

A long-format dataframe contains the interpeak distance, a template please refer to the result of "callPeakdist" function.

order

The groups show in the final plot, the input value should be vector, e.g. 'groups = c("group1","group2")', default is all folders in the folder path.

type

The plot type, could choose "bin" or "stacked" chart. Default is bin plot.

mincount

Minimum count of mode fragment size that will be included. Count number smaller than this value will be removed first, then proportion of each count value will be calculated. Default value is 0.

hline

The horizontal lines added to the bin plot. Default lines will be 'c(81,112,170)'.

...

Further arguments passed to or from other methods.

Value

The function returns the plot.

Author(s)

Haichao Wang

Examples

1
2
3
4
5
6
# Get the path to example data.
path <- examplePath("groups_picard")
# Calculate the modes.
df <- callMode(path = path)
# Plot modes.
plot <- plotMode(df, hline = c(80, 111, 170))

cfDNAPro documentation built on Nov. 8, 2020, 6:49 p.m.