plotMode | R Documentation |
Plot mode fragment size
plotMode(x, order, type, mincount, hline, ...)
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. |
The function returns the plot.
Haichao Wang
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.