I'm trying to draw a simple Diagram in DiagrammeR::mermaid that should looks like:
mermaid("
graph LR
A(Sample Text)
-->A
A-->B
B-->A
B-->
")
Obviously (or not) -->A and B--> code doesn't work. It's not possible to have an arrow going or coming from nowhere.
Is there a simple work around (blank node ? / invisible node ?)
How about this?
library(DiagrammeR)
mermaid("
graph LR
START[ ]-->A[Sample Text]
A-->B
B-->A
B-->STOP[ ]
style START fill:#FFFFFF, stroke:#FFFFFF;
style STOP fill:#FFFFFF, stroke:#FFFFFF;
")
Output diagram is:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With