makegraphviz | R Documentation |
Create a Quarto Graphviz dot Diagram Chunk With Variable Insertions
makegraphviz(.object., ..., file)
.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 ``` |
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.
nothing; used to knitr::knit_expand()
graphviz markup
Frank Harrell
makemermaid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.