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: Thu, 29 Nov 2012 13:00:15 -0500

So this has nothing to do with making the plots wider, after all. Use graph.data.frame() to convert your data frame to an igraph graph. 

G.

On Thu, Nov 29, 2012 at 12:51 PM, Mike Dylan <address@hidden> wrote:
it works with your example:
 
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()

but I have a data frame to work with:
 
App1 App2  cor
web  hr       3
hr    pp      4
etc
 
when I do this:
 
g<-graph.ring(tt)
I get this error:
 
Error in graph.ring(tt) :
  (list) object cannot be coerced to type 'double'
 
I need to grahp a data frame.

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]