pdf_digraph: Include digraphs in pdf output of Rmarkdown

Description Usage Arguments Value Examples

View source: R/pdf_digraph.R

Description

Include digraphs in pdf output of Rmarkdown

Usage

1
pdf_digraph(filename, code)

Arguments

filename

String of filename to save to, with exention .pdf

code

Either a string defining a digraph in the DOT language, or a string of a .gv filename (this file must be stored in the same working directory).

Value

Plots a digraph in the pdf output of an Rmarkdown document, when function is embedded in a code chunk.

Examples

1
2
3
4
## Not run: 
pdf_digraph_gv("graph.pdf", "graph.gv")

## End(Not run)

EllaKaye/EMK documentation built on July 26, 2020, 7:42 a.m.