pdf_digraph: Include digraphs in pdf output of Rmarkdown

View source: R/pdf_digraph.R

pdf_digraphR Documentation

Include digraphs in pdf output of Rmarkdown

Description

Include digraphs in pdf output of Rmarkdown

Usage

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

## Not run: 
pdf_digraph_gv("graph.pdf", "graph.gv")

## End(Not run)

EllaKaye/EMK documentation built on Jan. 7, 2023, 3:24 p.m.