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@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.

Reply via email to