plotMakefile: plotMakefile

Description Usage Arguments Value Author(s) Examples

Description

plot a Makefile using library(diagram).

Usage

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", ...)

Arguments

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.

Value

Return value of plotmat, plus colors used in the legend, and categories for the text labels.

Author(s)

Toby Dylan Hocking

Examples

 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=".*")

tdhock/plotMakefile documentation built on May 31, 2019, 7:38 a.m.