plotValleyDistance: Plot the inter-valley distance of fragment size distance...

Description Usage Arguments Value Author(s) Examples

View source: R/plotValleyDistance.R

Description

Plot the inter-valley distance of fragment size distance distribution

Usage

1

Arguments

x

A long-format dataframe contains the inter-valley distance, a template please refer to the result of 'callValleyDistance' 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, default is line plot, now only support line plot. Don't change this parameter in this version, keep it as default.

mincount

Minimum count value of inter valley distance, count number less than this value will be removed first, then proportion of each count value will be calculated. Default value is 0.

xlim

The x axis range shown in the plot. Default is c(8,13).

...

Further arguments passed to or from other methods.

Value

The function returns the line plot of inter valley distance.

Author(s)

Haichao Wang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Get the path to example data.
path <- examplePath("groups_picard")

# Calculate the inter-valley distance.
df <- callValleyDistance(path = path)

# Plot the inter-valley distance.
plot <- plotValleyDistance(df,
    xlim = c(8, 13),
    mincount = 2
)

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