Hello,
It appears you are using the igraph package. You can get rid of the arrows
using a few different methods.
You can make the graph undirected:
new.graph <- as.undirected(old.graph)
plot(new.graph)
Or you can simply specify the size of the arrows as zero using either
E(some.graph)$arrow.size <- 0
plot(some.graph)
OR
plot(some.graph, edge.arrow.size=0)
There are many great plotting features with the igraph package available here:
http://igraph.sourceforge.net/doc/R/plot.common.html
Best,
Gary
On Apr 12, 2011, at 6:00 AM, r-help-request@r-project.org wrote:
> Message: 77
> Date: Mon, 11 Apr 2011 15:09:26 -0700 (PDT)
> From: kparamas <kparamas@asu.edu>
> To: r-help@r-project.org
> Subject: [R] plot - kamada.kawai layout without arrows
> Message-ID: <1302559766984-3443258.post@n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I am plotting a graph with kamada.kawai layout.
>
> But I am getting direction arrows in the graphs.
> Please let me know how to avoid this.
>
> g <- watts.strogatz.game(1, 2000, 5, 0.4)
>
> comps <- clusters(g)$membership
> colbar <- rainbow(max(comps)+1)
> V(g)$color <- colbar[comps+1]
>
> png(filename)
> plot(g, layout=layout.kamada.kawai, vertex.size=2, vertex.label=NA)
> dev.off()
>
> Please find attached the figure with arrows..
> http://r.789695.n4.nabble.com/file/n3443258/cdata1_plot.png
--
Gary Weissman
http://www.babelgraph.org/
gary@babelgraph.org
[[alternative HTML version deleted]]