igraph-help
[Top][All Lists]
Advanced

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

[igraph] optimizing SN graph in igraph


From: 赵鸿丰
Subject: [igraph] optimizing SN graph in igraph
Date: Tue, 10 Feb 2015 18:21:47 +0800

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


reply via email to

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