Create a Quarto Graphviz dot Diagram Chunk With Variable Insertions
makegraphviz(.object., ..., file)nothing; used to knitr::knit_expand() graphviz markup
character string or vector with graphviz markup
name=value pairs that makes values replace {{name}} elements in the markup
name of file to hold graphviz markup after variable insertions. Run this in Quarto using a chunk to looks like the following, which was for file='graphviz.dot'.
```{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
```
Frank Harrell
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.
makemermaid(), makegvflow(), makedot()