[R] Visualization of two-mode matrix/ networks/ graphs

Brendan Casey bcasey1 at hotmail.com
Fri Aug 22 21:57:13 CEST 2008


Jakob,

Could you please tell me how you got your 2-mode data INTO R/statnet/sna,
etc... ?

I can do many things with this data in ucinet, and even export it to pajek,
but I cannot get it to import even using the read.paj routine.  I have about
620 actors involved in 230 events.  When I convert it to an actor only
network, I also cannot get rid of the arrows!  I am trying to import from a
Pajek .net file

Success so far with drawing the two modes differently in UCInet, but I want
to do more statnet work on these networks, and also use the event timestamps
to show dynamic features of the network down the line.  Anyone?

-Brendan Casey



Jakob Mumm wrote:
> 
> Hey all,
> I'm looking for a plotting method for two-mode networks. Having a  n x m
> matrix where n is the first set of entities/ actors and m representing the
> second set, I want to colour both sets of actors differently. I tried
> "plot.network" from the network-package, but I did not succeed. Even the
> proposed solution from Gabor Grothendiek
> (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/87003.html ) seems not
> well
> suited for the problem. Further, I'm wondering how to interpret
> "vertex.col :
> color for vertices; may be given as a vector or a vertex attribute name,
> if
> vertices are to be of different colors." . For the latter solution via
> attribute name the documentation gives the following example
> "vertex.col=2+(network.vertex.names(nflo)=="Medici"" which is not a
> problem,
> but how to use the former solution via vector? 
>  The command "gplot" out of the sna-package should have incorporated a way
> of
> considering two-mode matrix via gmode=="twomode" (see help for gplot), but
> then one has to work with graphs and will loose (so far I have caught it)
> information which is stored in the class of network. 
> For example, take the following adjacency matrix, where 1-6 (rows) is the
> first set of entities and 7-9 (cols) the second:
>   7 8 9
> 1 0 0 0
> 2 1 0 0
> 3 1 0 0
> 4 0 0 0
> 5 0 0 0
> 6 0 0 0
> Thanks in advance,
> Jakob 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> 

-- 
View this message in context: http://www.nabble.com/Visualization-of-two-mode-matrix--networks--graphs-tp12959659p19114539.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list