Dear All
I am using Rgraphviz to plot graphs in support to a research in the machine learning field. In the current stage we are working with chain of events graph generation, and these graphs usually have multiple edges between 2 nodes, and each edge has its own label and occurrence probability (rank).
I have searched the Rgraphviz documentation and internet forums without success. All packages were updated.
Issue:
When trying to plot more than one edge between two nodes with distinct labels, the Rgraphviz uses only the first informed label to all these edges, ignoring the following labels. You can replicate this using the simple example that follows:
g <- new( "graphNEL", nodes= c("a","b"), edgemode="directed", edgeL= list( a = c("b", "b","b" ), b=c()) )
plot( g, main="test", edgeAttrs= list( label = c("a~b"="Y-label", "a~b"="Z-label", "a~b"="")), attrs=list(graph=list(rankdir="LR")) )
Current environment (another researcher observed the same issue under a windows 7 environment) - sessionInfo() output:
R version 3.1.1 (2014-07-10)
Platform: x86_64-suse-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C
[3] LC_TIME=pt_BR.UTF-8 LC_COLLATE=pt_BR.UTF-8
[5] LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=pt_BR.UTF-8
[7] LC_PAPER=pt_BR.UTF-8 LC_NAME=pt_BR.UTF-8
[9] LC_ADDRESS=pt_BR.UTF-8 LC_TELEPHONE=pt_BR.UTF-8
[11] LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=pt_BR.UTF-8
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] Rgraphviz_2.10.0 graph_1.44.1 rkward_0.6.1
loaded via a namespace (and not attached):
[1] BiocGenerics_0.12.1 parallel_3.1.1 stats4_3.1.1
[4] tools_3.1.1
Any advise will be highly appreciated
Pier-Giovanni Taranti (ptaranti@gmail.com)
CASNAV, Rio de Janeiro, Brazil
Kasper,
Thanks. Issue submitted:
https://github.com/kasperdanielhansen/Rgraphviz/issues/7
Best
Pier