[BioC] Rgraphviz - arrowhead
deepayan.sarkar at gmail.com
Thu Jun 18 01:18:01 CEST 2009
On Wed, Jun 17, 2009 at 3:00 PM, Yaniv Semel<ys1276 at gmail.com> wrote:
> Hi all,
> i'm using the package Rgraphviz to draw graphs, and its really awesome.
> there is only one thing that i cant accomplish no matter what i try: to draw
> arrowhead (on edges) that are different than the normal.
> i'm trying to change the arrowhead property to be "box" or "diamond" or
> anything else according to the instructions here:
> but it doesnt have any effect. i always get the normal arrowhead.
> what am i missing here?
> can somebody please show me a working code that produce a simple graph with
> not normal arrowheads (for example box or diamonds) ?
> here is a simple code that shows that i can manage to control the edge color
> (red), but not the arrowhead:
> nodes <- c(n1="a", n2="b", n3="c")
> edges <- list(a=list(edges=c("b", "c")), b=list(edges=c("c")),
> g <- new("graphNEL", nodes=nodes, edgeL=edges, edgemode="directed")
> plot(g, attrs=list(edge=list(color="red", arrowhead="box",
Try the new layoutGraph/renderGraph interface, described in the "A New
Interface to Plot Graphs Using Rgraphviz" vignette:
More information about the Bioconductor