R图表师。我怎样才能改变箭头的种类? "leading_to"

R Diagrammer. How can I change the kind of arrows? "leading_to"

如何更改 Diagrammer 图表上的箭头类型? 我想将它们混合在同一个图表上。

玩具示例:

library(data.table)
niv <- c("A","B","C","D","E","X","Y")
from <- c("A","A","A","A","B","C","D","E", "X", "B")
to <- c("B","C","D","E","X","X","Y","Y","Y", "C")
temp <- data.table(from=factor(from, levels=niv),
to=factor(to,levels=niv), col=c(rep("blue",5), rep("black",5)))

nodes <-   create_node_df(  n=length(niv), label=niv,  width=0.3) 
edges <- create_edge_df(from = temp$from, to = temp$to, 
rel = "leading_to", label=temp$from, color=temp$col)   
graph <- create_graph(  nodes_df = nodes, edges_df = edges)
render_graph(graph)

现在所有箭头都定义为rel = "leading_to"。 但是我无法在文档中找到我可以使用的其他选项。

我想将该参数 link 添加到我的数据表中的新列,指定我是想要 "to" 箭头、"from" 箭头,还是只画一条没有箭头的线.

有尾无头的箭有哪些选择?
对于没有箭头的简单线条?

我找到了使用参数

的方法
arrowhead = myvector

我的向量包含元素 "none" and/or "normal"。这让我可以抑制一些箭头。其他有趣的选项是 invcrowhttps://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html

也许参数 rel 也有一个选项,但我找不到它。