Skip to content

Rgraphviz - issue with edge label when using multiple edges between two nodes #7

Description

@ptaranti

Inserted by Kasper request

see: https://support.bioconductor.org/p/70492/
.....................

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("ab"="Y-label", "ab"="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

Pier-Giovanni Taranti (ptaranti@gmail.com)

CASNAV, Rio de Janeiro, Brazil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions