[R] linewidth in Rgraphviz

Robert Gentleman rgentlem at fhcrc.org
Fri Oct 5 21:50:01 CEST 2007

Hi Ben,
   Sorry for the slow reply, but something like this works,

          x = plot(g1)
          xx = sapply(AgEdge(x), lines, lwd=2, len=1)

  there are other ways too - but this might be the easiest
  let me know if that does what you want...


Ben Bolker wrote:
>   I'm an Rgraphviz newbie trying to figure out how to do some things/whether
> they are possible.
>   Apparently graphviz does allow you to modify line widths of edges: see
> https://mailman.research.att.com/pipermail/graphviz-interest/2001q2/000051.html
> (although it looks a little obscure even in graphviz).  [As discussed in the
> thread
> above, the "weight" parameter in Rgraphviz sets the parameters of the graph
> layout
> algorithm, NOT the linewidth of the edge itself.]
>    I can probably figure this out given enough hours, but if someone were
> able
> to put together an example in a few minutes (or know that it's impossible
> or very difficult) I would be grateful ...
>   cheers
>     Ben Bolker

Robert Gentleman, PhD
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M2-B876
PO Box 19024
Seattle, Washington 98109-1024
rgentlem at fhcrc.org

More information about the R-help mailing list