[R] Drawing a graph with vertices and edges using tcl/tk

Gabor Grothendieck ggrothendieck at gmail.com
Sun Jul 31 15:49:21 CEST 2005


Another approach is the Bell Labs graphviz system.  See

   http://www.graphviz.com 

For an example of using it from R, see the dot.proto function
in the 'proto' package.  dot.proto generates dot language output 
to draw a graphviz graph of the objects in any R program written 
using 'proto'.

   library(proto)
   example(dot.proto)  
   # see ?dot.proto for instructions on displaying graph

The above approach should work on any OS supported by R
(since graphviz works on all of them); however, on UNIX one
could also use the Rgraphviz package that specifically
interfaces R with graphviz:

  http://www.bioconductor.org/repository/release1.4/package/html/Rgraphviz.html


On 7/31/05, Søren Højsgaard <Soren.Hojsgaard at agrsci.dk> wrote:
> Dear all; I would like to draw a graph with vertices and edges, and I guess tcl/tk would be appropriate. I don't know tcl/tk but have googled for a 10-page (or so) introduction to 'getting started with tcl/tk in R' but without any luck.
> - Does anyone know of the existence of such a document or any other web-based material on the subject?
> - Does anyone have an (informative) piece of code which does something similar to what I want?
> Thanks in advance
> Søren
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list