igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] make igraph charts wider


From: Gábor Csárdi
Subject: Re: [igraph] make igraph charts wider
Date: Tue, 4 Dec 2012 11:21:18 -0500

It is called graph.data.frame(). There is a misunderstanding here, I think. An igraph object does not store how the graph will look when you plot it (although you can attach attributes to the graph and these might store some plotting information. I.e. 'g' in the example below has no information about how wide the the plot will be. 

You can make graph plots wider the same way, it does not matter how you created them. E.g.:
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()

g2 <- graph.data.frame(data.frame(from=1:10, to=c(2:10,1)))
png("ring2.png", width=300, height=150)
par(mar=c(0,0,0,0))
plot(g2, asp=0, margin=0)
dev.off()
Gabor



On Tue, Dec 4, 2012 at 11:07 AM, Mike Dylan <address@hidden> wrote:
Hi Gabor:
 
Sorry to bother you again. Is it possible to strerch the igraph using data.frame.graph?

On Monday, November 26, 2012 3:02:00 PM UTC-5, Mike Dylan wrote:
plot(g, layout =  layout.kamada.kawai,  vertex.label = V(g)$name,  vertex.label.color= "darkblue",edge.arrow.size=0.8,  edge.curved=T, edge.label=E(g)$Freq, edge.label.color="#F900F9", edge.label.font=5,vertex.shape="rectangle",edge.color="darkgreen", vertex.color="red"))
 
I tried the above layout type and bunch of other ones but still getting the circular output. I would like to make the chart wider so that it is easlity readable. Is there an option like xaxis max or antything to make this work?

_______________________________________________
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]