Re: [Rd] drawing the graph with many nodes

From: Tim Triche, Jr. <tim.triche_at_gmail.com>
Date: Tue, 27 Mar 2012 09:53:03 -0700

there's also Rgraphviz, although with 30,000+ edges it may not survive *this* graph :-)

On Tue, Mar 27, 2012 at 4:11 AM, Whit Armstrong <armstrong.whit_at_gmail.com>wrote:

> if you don't mind going outside of R to create it, then check out
> Graphviz: http://www.graphviz.org/Gallery.php
>
> you may have to reformat your data a little, but this tool is great
> for drawing graphs.
>
> -Whit
>
>
> On Tue, Mar 27, 2012 at 5:14 AM, MSousa <ricardosousa2000_at_clix.pt> wrote:
> > Good morning,
> >
> >
> > I'm trying to draw a graph, and I'm using the following code.
> >
> > test.matrix<-read.table("~/Desktop/Results/testgephi.csv", header = T,
> > sep=",")
> > colnames(test.matrix) <- gsub("X", "", colnames(test.matrix))
> > #drop first column
> > drops <- c("")
> > test.matrix<-test.matrix[,!(names(test.matrix) %in% drops)]
> > test.matrix
> > test.matrix<-data.matrix(test.matrix)
> > am.graph<-new("graphAM", adjMat=test.matrix, edgemode="directed")
> > am.graph
> > plot(am.graph, attrs = list(node = list(fillcolor = "lightblue"),edge =
> > list(arrowsize=0.5)))
> >
> >
> > The file testgephi.csv is following.
> > "","1","2","3","4","5"
> > "1",393,55,66,44,88
> > "2",44,23,47,57,89
> > "3",57,87,98,456,43
> > "4",77,767,86,32,77
> > "5",43,88,23,76,46
> >
> > In the example graph of the drawing works well, the problem is when I'm
> > trying to draw the graph from a file wih A graphAM graph with directed
> edges
> > Number of Nodes = 217
> > Number of Edges = 32804
> >
> > is there any package or tool that can draw a structure like this
> >
> >
> > Thanks
> >
> >
> > --
> > View this message in context:
> http://r.789695.n4.nabble.com/drawing-the-graph-with-many-nodes-tp4508319p4508319.html
> > Sent from the R devel mailing list archive at Nabble.com.
> >
> > ______________________________________________
> > R-devel_at_r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
*A model is a lie that helps you see the truth.*
*
*
Howard Skipper<http://cancerres.aacrjournals.org/content/31/9/1173.full.pdf>

	[[alternative HTML version deleted]]

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 27 Mar 2012 - 16:57:26 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 27 Mar 2012 - 17:40:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive