Description Usage Arguments Value Author(s) Examples
plot a Makefile using library(diagram).
1 2 3 | plotMakefile(makefile, sort.fun = sortDefault, colors = NULL,
categories = NULL, curve = 0, segment.from = 0.1, segment.to = 0.9,
box.type = "none", legend.x = "bottom", ...)
|
makefile |
Path to the Makefile. |
sort.fun |
Function that takes a numeric vector of vertical/y values of the file names to plot, and returns the files names in the order they should appear on the plot. |
colors |
Named character vector that maps categories to plot colors. |
categories |
Named character vector that maps each category to a regular expression for matching filenames. |
curve |
passed to plotmat. |
segment.from |
passed to plotmat. |
segment.to |
passed to plotmat. |
box.type |
passed to plotmat. |
legend.x |
passed to legend as x. |
... |
passed to plotmat. |
Return value of plotmat, plus colors used in the legend, and categories for the text labels.
Toby Dylan Hocking
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Default sorting may result in a plot with edge crossings.
f <- system.file(file.path("Makefiles", "custom-capture.mk"),
package="plotMakefile")
plotMakefile(f)
## You can adjust this by providing a custom sort.fun, and you can
## adjust other plotmat parameters such as main (plot title).
sorter <- sortValues("table-variants.R", "trios.RData",
"sample.list.RData", "table-noise.R")
plotMakefile(f, sort.fun=sorter,
main="custom capture variant detection project")
## If you want to just plot everything in black without a legend,
## specify that all files belong to the same category.
plotMakefile(f, categories=".*")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.