###
# Create an empty graph
###
library(DiagrammeR)
mermaid("graph TB
SubGraph1 --> SubGraph1Flow
subgraph SubGraph 1 Flow
SubGraph1Flow(SubNode 1)
SubGraph1Flow -- Choice1 --> DoChoice1
SubGraph1Flow -- Choice2 --> DoChoice2
end
subgraph Main Graph
Node1[Node 1] --> Node2[Node 2]
Node2 --> SubGraph1[Jump to SubGraph1]
SubGraph1 --> FinalThing[Final Thing]
")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.