简体   繁体   English

使用processmapR通过neato布局控制边缘

[英]Control edge with neato layout with processmapR

I'm using the bupaR process mining suite and processmapR to plot my log as a process map but when I try to set a custom position (which force the graph to use a neato layout) the edge become almost staight and the edge value hard to read: 我正在使用bupaR流程挖掘套件和processmapR来将我的日志绘制为流程图,但是当我尝试设置自定义位置(迫使图形使用neato布局)时,边缘几乎保持稳定,并且边缘值难以达到读:

Default graph with no custom position: 没有自定义位置的默认图形: 在此处输入图片说明 With custom position: 具有自定义位置: 在此处输入图片说明

I tried to use 我尝试使用

positions <- data.frame(act = c("node1","node2","node 3","node 4","node 5","Start", "End"),
                        y = c(5,4,3,2,1,6,0),
                        x = c(1,2,3,4,5,0,6),
                        stringsAsFactors = F)
graph = process_map(log, fixed_node_pos = positions, render = F)
map = add_global_graph_attrs(graph,
                             attr = "splines",
                             value = "true", 
                             attr_type = "graph")
render_graph(map)

But I could not find any attribute to change the way edge are displayed, like adding more curve to them 但是我找不到任何属性来更改边缘的显示方式,例如向它们添加更多曲线

How can I fix this problem ? 我该如何解决这个问题?

Thanks 谢谢

Try the following: 请尝试以下操作:

map = add_global_graph_attrs(graph,
                             attr = "splines",
                             value = "curved", 
                             attr_type = "graph")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM