我正在尝试在 grViz 中使用节点属性“alpha”,但我无法使用 R3.5.1 使其工作(在 RStudio 中)并且所有包都已更新。此代码不产生任何 alpha。
library(DiagrammeR)
grViz("
digraph {
node [fontname = Helvetica,
shape = rectangle, width = 3,
color = red,
alpha = 20,
style = filled
]
edge [color = red, arrowtail = none]
A [width = 3, label = '@@1']
B [label = 'transportdata.gms']
B1 [label = '@@2']
C [label = 'stockflow.gms']
A -> B
B -> B1
B -> C
B1 -> C
}
[1]: paste0('Original Data (in Excel-File):\\n ','px-x-1103020100_102\\n px- x-1103020100_103\\n px-x-1103020100_105')
[2]: paste0('./temp/priv_carsdata.gdx')
")
欢迎任何帮助!
伦格