是否可以从节点绘制箭头到空?(Is it possible to draw arrow from node to nothing?)
我试图在DiagrammeR::mermaid中绘制一个简单的图表,看起来像:
mermaid(" graph LR A(Sample Text) -->A A-->B B-->A B--> ")显然(或不) -->A和B-->代码不起作用。 不可能有箭头去或来自哪里。
有一个简单的解决方法(空白节点?/不可见节点?)
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 ?)
最满意答案
这个怎么样?
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; ")输出图是:
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:
更多推荐
发布评论