Re: [R] Creating and editing networks

About this list Date view Thread view Subject view Author view Attachment view

From: Uwe Ligges (ligges@statistik.uni-dortmund.de)
Date: Sun 09 May 2004 - 22:35:02 EST


Message-id: <409E2576.3030309@statistik.uni-dortmund.de>

Gabor Grothendieck wrote:
> I want to draw and edit networks. Currently I will do something like this --
> my actual networks are larger and more complex:
>
> 1. Plot network
>
> # use polygon with nodes as example network
> N <- 20
> t. <- 2*pi*seq(N+1)/N
> plot(cos(t.), sin(t.), type="b", pch=19, cex=5, col="blue", axes=F, ann=F)
>
> 2. copy and paste the graphic as a metafile into Word.
>
> 3. edit the network
> there. The editing typically just involves moving nodes and the attached
> edges. Of course, Word does not know the edges are attached to the nodes so I
> have to move the nodes and then move the attached edges, as well.
>
> The networks are too complex to create the diagrams by hand which is why
> I want to create them in R and then edit them by hand.
>
> The above strategy is marginally acceptable but
> I was wondering if anyone had a better strategy which retains the
> simplicity of the present approach but gives me the capability to
> have the edges move along with attached nodes when editing them.
>
> (Note that the strategy must consist of generating the network under program
> control, preferably in R, and then editing it afterwards. I am not looking
> to create the entire network by hand since the networks are too complex for
> that. I had tried specifying the networks in dot from Bell Labs but 1. its
> still more work than generating the network in R 2. the automatic
> layout it chooses is so far from what I need that its a lot of work to
> fix it up by hand in dotty and 3. I could never get them to look just how
> I like. I have also tried Excel and Powerpoint, both
> of which support connectors, which are edges that move along with attached
> nodes, but to use them I have to create the entire network by hand and
> the networks have grown too complex to do that.)
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Have you tried the CRAN package "dynamicGraph" by Jens Henrik Badsberg?

Uwe Ligges

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST