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 graphviz markup

...

name=value pairs that makes values replace {{name}} elements in the markup

file

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
```

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

See Also

makemermaid()


[Package qreport version 1.0-0 Index]