使用 bupaR,如何将流程和性能图中的计数和时间合并到一张图中?
Using bupaR, how can I combine the counts and times from the process and performance maps into one map?
我知道您可以将两者的边和节点组合起来,如图所示 here。
但是,我正在尝试创建类似的东西,如果可能的话,它会在边缘和节点上同时显示计数和时间,如下所示。有了这样的东西,人们就不必经常并排比较 process/performance 地图来查看哪些计数与哪些时间匹配。
Example Combined Process & Performance Map
我刚刚发现了 "sec_nodes" 和 "sec_edges" 参数,它们允许您同时显示时间和计数,这已经足够好了,但我不确定是否可以显示第三种类型和边缘统计。
patients %>% process_map(performance(mean, "hours"),
type_nodes = performance(median, "hours"),
sec_nodes = frequency("relative"),
type_edges = performance(median, "hours"),
sec_edges = frequency("relative"))
我知道您可以将两者的边和节点组合起来,如图所示 here。
但是,我正在尝试创建类似的东西,如果可能的话,它会在边缘和节点上同时显示计数和时间,如下所示。有了这样的东西,人们就不必经常并排比较 process/performance 地图来查看哪些计数与哪些时间匹配。
Example Combined Process & Performance Map
我刚刚发现了 "sec_nodes" 和 "sec_edges" 参数,它们允许您同时显示时间和计数,这已经足够好了,但我不确定是否可以显示第三种类型和边缘统计。
patients %>% process_map(performance(mean, "hours"),
type_nodes = performance(median, "hours"),
sec_nodes = frequency("relative"),
type_edges = performance(median, "hours"),
sec_edges = frequency("relative"))