[Top][All Lists]

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

Re: [igraph] changing widht and height of the igraph

From: Gábor Csárdi
Subject: Re: [igraph] changing widht and height of the igraph
Date: Wed, 10 Oct 2012 10:48:57 -0400

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

g <- graph.ring(10)
png("ring.png", width=300, height=150)
plot(g, asp=0, margin=0)

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.


On Wed, Oct 10, 2012 at 10:45 AM, Mike Dylan <address@hidden> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     MTA KFKI RMKI

reply via email to

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