Tom, you mean 'tkplot' in the igraph package? Look at ?igraph.plotting
on how to set up plotting parameters, e.g. if you want different line
types for the positive/negative relations, then you can make use of
the 'lty' parameter:
On Fri, Nov 14, 2008 at 12:40 PM, Tom Backer Johnsen
A <- matrix(sample(c(-1,0,1), 100, replace=TRUE), 10)
g <- graph.adjacency(A, mode="upper", weighted=TRUE, diag=FALSE)
E(g)$lty <- ifelse(E(g)$weight > 0, 1, 2)
> I have a number of (directed) graphs based on social groups, where the
> members have expresed likes and dislikes in respect to the other members.
> tkgraph makes it simple to draw the graphs in a very pleasing way, but I
> would like to differentiate between positive and negative relations in the
> graph by having the edges for the negative relations dashed and the positive
> ones continuous.
> Is that possible? If so how?
> R-help_at_r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
On Fri, Nov 14, 2008 at 12:40 PM, Tom Backer Johnsen <backer_at_psych.uib.no> wrote:
-- Gabor Csardi <Gabor.Csardi_at_unil.ch> UNIL DGM ______________________________________________ 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.Received on Fri 14 Nov 2008 - 13:06:07 GMT
Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Archive generated by hypermail 2.2.0, at Fri 14 Nov 2008 - 16:30:25 GMT.
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.
list of date sections of archive