makegraphviz {qreport} | R Documentation |
makegraphviz
Description
Create a Quarto Graphviz dot Diagram Chunk With Variable Insertions
Usage
makegraphviz(.object., ..., file)
Arguments
.object. |
character string or vector with |
... |
name=value pairs that makes values replace |
file |
name of file to hold ```{dot} //| label: fig-doverview-graphviz //| fig-height: 4 //| fig-cap: "Consort diagram produced with `graphviz` with detailed exclusion frequencies in a separate node" //| file: graphviz.dot ``` |
Details
Takes a character string or vector and uses knitr::knit_expand()
to apply variable insertions before the diagram is rendered by Quarto. See this for an example. Unlike mermaid
, graphviz
can include user-defined linkages to specific parts of a node (e.g., a single word in a line of text) to another part of the chart, and can render tables. If an inclusion is ...
is a data frame or table, it will be properly rendered inside the diagram.
Value
nothing; used to knitr::knit_expand()
graphviz markup
Author(s)
Frank Harrell