[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] make igraph charts wider
From: |
Mike Dylan |
Subject: |
Re: [igraph] make igraph charts wider |
Date: |
Thu, 29 Nov 2012 09:51:13 -0800 (PST) |
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] make igraph charts wider, Mike Dylan, 2012/11/26
- Re: [igraph] make igraph charts wider, Gábor Csárdi, 2012/11/26
- Re: [igraph] make igraph charts wider, Mike Dylan, 2012/11/26
- Re: [igraph] make igraph charts wider, Mike Dylan, 2012/11/26
- Re: [igraph] make igraph charts wider, Mike Dylan, 2012/11/29
- Re: [igraph] make igraph charts wider,
Mike Dylan <=
- Re: [igraph] make igraph charts wider, Mike Dylan, 2012/11/29