Hi @joxborrow I find the solution on a @yihui 's post.
See the example 'dot.Rmd' host on GitHub.
Here, the code is written in RMarkdown.
A dot example
A dot
-example taken from the man-pages. You need to install the graphviz
package.
```{r dot-ex, engine = "dot", fig.cap = "Funky dot", cache=TRUE}
digraph test123 {
a -> b -> c;
a -> {x y};
b [shape=box];
c [label="hello\nworld",color=blue,fontsize=24,
fontname="Palatino-Italic",fontcolor=red,style=filled];
a -> z [label="hi", weight=100];
x -> z [label="multi-line\nlabel"];
edge [style=dashed,color=red];
b -> x;
{rank=same; b x}
}
```
The output is here https://github.com/yihui/knitr-examples/blob/master/057-engine-dot.md