igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] optimizing SN graph in igraph


From: Gábor Csárdi
Subject: Re: [igraph] optimizing SN graph in igraph
Date: Wed, 11 Feb 2015 11:25:15 -0500

Hi, these are the proper channels for igraph help:
http://igraph.org/r/#help

As for your questions, please consider reading the docs:
http://igraph.org/r/doc/plot.common.html

If you have specific questions, please post to the igraph-help mailing list or at stack overflow. Please make sure that you include a reproducible example:
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Gabor

On Tue, Feb 10, 2015 at 5:21 AM, 赵鸿丰 <address@hidden> wrote:

Dear Sir/Madam:

Thanks for your tips, a rookie like me could use igraph to draw a social network graph from a document. 

And the code is very simple:

#load the data of directed waighted social network
snet<-read.csv("E://exp//RoA.csv", header = TRUE, )

#drawing the graph of social network
library(igraph)

#prepare data in the form of data frame
relations<-data.frame(from=snet[,1],to=snet[,2], directed=TRUE)
#build the graph data frame
conv<- graph.data.frame(relations, directed=TRUE)
#output
plot(conv, layout=layout.fruchterman.reingold, , vertex.size=5, edge.arrow.size=0.2,
     vertex.label.dist=0.2,)

Now I am facing another problem: the clarity of the SN graph.

My SN graph seems like a mess because vertexes, arrows, and labels are all crowed in the middle of the plotting area, just like follows:

 

I tried to modify the elements of SN graph, include following details:

1. Enlarge the graph to make it fitting with plotting area, 

2. Minify the scale of the label, 

3. Shrink the size of arrow, 

4. Shrink the size of vertexes, but maintain the proportion of vertexes

but only vertexes changed. I wonder if you could help me on how to do it exactly.

I would be most grateful if you could tell me about the detail.

Looking forward to hearing from you.

Thank you very much.

                                     Sincerely yours 

                                     Humphrey Zhao


_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]