Here is my example again, just to have it on the list.

library(igraph)
g <- graph.ring(10)
png("ring.png", width=300, height=150)
par(mar=c(0,0,0,0))
plot(g, asp=0, margin=0)
dev.off()

If the nodes are still on top of each other, then you have three options:

1. make the figure bigger
2. make the nodes smaller
3. play with the layout generator parameters to make edges shorter,
assuming they are too long now.

Gabor

On Wed, Oct 10, 2012 at 10:45 AM, Mike Dylan <[email protected]> wrote:
> Hi Gabor:
>
> I received your email. What I am looking for is to be able use all the
> landscape in png file to really show the nodes clearly to the end users. The
> nodes are still on top of each other. Do you think, I need to explore xlim
> and ylim options to accomplish this?
>
> On Tuesday, October 9, 2012 10:26:26 AM UTC-4, Mike Dylan wrote:
>>
>> I need to write the output of the igraph to a .png file, I am doing this:
>>
>> png(network.png height=600, width=1200)
>>   plot(g, layout = layout.fruchterman.reingold,  vertex.label = V(g)$name,
>> vertex.label.color= "navyblue",  edge.arrow.size=0.9,  edge.curved=T,
>> edge.label=t$count, edge.label.color="darkblue",
>> edge.label.font=12,vertex.shape="circle", vertex.label.dist=0,
>> edge.color="darkgreen", vertex.label.cex=1, vertex.label.font=3, main="Web
>> servers Diagram"))
>>
>> I still get the same size of image. Depending of the number of nodes
>> (number of rows), I like to change the size of the image. Is there option to
>> chnage the size of the image in igraph?
>
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <[email protected]>     MTA KFKI RMKI

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to