plot.dep_graph: Plot knitr dataflow graph

Description Usage Arguments Value

View source: R/flowgraph.R

Description

Visualization of the dependencies among chunks in a knitr input file. Returns also the graph in the textual dot format (for Graphviz) that can processed using the Graphviz command line tools.

Usage

1
2
3
## S3 method for class 'dep_graph'
plot(x, y = "all", plot = TRUE, units = "by_chunk",
  ...)

Arguments

x

Object of class dep_graph. A dependency graph for a knitr input file.

y

Character, default 'all'. Possible values are 'all', 'manual' and 'auto', which selects which edges type are plotted.

plot

Logical, default TRUE. Should the generated plot actually be plotted.

units

Character, default 'by_chunk'. Appropriate units on times and file sizes are computed individually for each chunk by default. Set to 'all_same' to get the same unit across all chunks.

...

Additional arguments passed on to grViz.

Value

A character string (invisibly) containing the graph in the dot format.


nielsrhansen/knitrflow documentation built on May 5, 2019, 7:59 p.m.