# Network figure

**URL:** <https://igraph.discourse.group/t/network-figure/237>\
**Category:** Usage\
**Tags:** R\
**Created:** [23 May 2020 08:30 UTC](https://igraph.discourse.group/t/network-figure/237 "2020-05-23T08:30:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyadarshini\_Thirun](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/priyadarshini_thirun/32/160_2.png) [@Priyadarshini\_Thirun](https://igraph.discourse.group/u/Priyadarshini_Thirun)\
**Post date:** [23 May 2020 08:30 UTC](https://igraph.discourse.group/t/network-figure/237/1 "2020-05-23T08:30:37Z")

</div>

Hi,  
I need help to create network figure in igraph. I used the below script, but the node names and their connections appear cluttered. Please find the attached image file. Does anyone have suggestion to create a network figure, where all the nodes and edges can be clearly seen?

```r
V(graph)[c("DISC1","GSK3B", "NRG1", "BDNF","GRM5", "DLG2", "DTBP1", "1433E", "NMDE1", "CNTP2")]$label.color <-"blue" 
      
l <- layout.fruchterman.reingold(graph, niter=5000, area=vcount(graph)^4*10)

g <- plot(graph, layout=l, 
          edge.arrow.size=0.5, 
          vertex.label.cex=0.75, 
          vertex.label.family="Helvetica",
          vertex.label.font=2,
          vertex.shape="circle", 
          vertex.size=1, 
          vertex.color="black", 
          edge.width=0.5)

```

 ![postnatal_10APs](https://global.discourse-cdn.com/free1/uploads/igraph/original/1X/e199a5d2850116349ebd2d89aa3523ca355adbb0.png)

Thanks

Priya

---

<div class="post-metadata">

**Author:** ![Charles\_Palmer](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/charles_palmer/32/294_2.png) [@Charles\_Palmer](https://igraph.discourse.group/u/Charles_Palmer)\
**Post date:** [5 July 2020 05:20 UTC](https://igraph.discourse.group/t/network-figure/237/2 "2020-07-05T05:20:50Z")

</div>

I’m new to igraph, but I was able to clean up my graph by adjusting the margin, changing the font size, and altering the label distance. Here are my setting for python, I’m sure you can produce something like it in r.

style[“margin”] = 100  
style[“vertex\_label\_dist”] = -3  
style[“vertex\_label\_size”] = 10

---

<div class="post-metadata">

**Author:** ![Priyadarshini\_Thirun](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/priyadarshini_thirun/32/160_2.png) [@Priyadarshini\_Thirun](https://igraph.discourse.group/u/Priyadarshini_Thirun)\
**Post date:** [6 July 2020 06:33 UTC](https://igraph.discourse.group/t/network-figure/237/3 "2020-07-06T06:33:19Z")

</div>

@Charles_Palmer

Thank you for your suggestions. I will try it in R.
