plotModesummary: Summarize and plot mode fragment size in a stacked bar chart

Description Usage Arguments Value Author(s) Examples

Description

Summarize and plot mode fragment size in a stacked bar chart

Usage

1
plotModeSummary(x, order, summarized, mode_partition, ...)

Arguments

x

A long-format dataframe contains mode fragment size, a template please refer to the result of 'callMode' 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.

summarized

Logical value, default is False.

mode_partition

This should be a list. This decides how the modes are partitioned in each stacked bar. Default value is 'list(c(80, 81), c(111, 112), c(167))'. Also this function will automatically calculate an 'Others' group which includes the modes not mentioned by users.

...

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
7
8
# Get the path to example data.
path <- examplePath("groups_picard")
# Calculate the modes.
df <- callMode(path = path)
# Plot mode summary.
plot <- plotModeSummary(df,
    mode_partition = list(c(80, 81), c(111, 112), c(167))
)

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