Description Usage Arguments Value Author(s) Examples
Summarize and plot mode fragment size in a stacked bar chart
1 | plotModeSummary(x, order, summarized, mode_partition, ...)
|
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. |
The function returns the plot.
Haichao Wang
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))
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.