search for: grapham

Displaying 8 results from an estimated 8 matches for "grapham".

Did you mean: graham
2009 Sep 11
2
Graph visualization
...e package 'graph' seems to be appropriate for this. An example in the package > mat <- rbind(c(0, 0, 1, 1), + c(0, 0, 1, 1), + c(1, 1, 0, 1), + c(1, 1, 1, 0)) > rownames(mat) <- colnames(mat) <- letters[1:4] > graph1 <- new("graphAM", adjMat=mat) > graph1 A graphAM graph with undirected edges Number of Nodes = 4 Number of Edges = 5 how can I plot the object graph1? Thanks in advance Arber [[alternative HTML version deleted]]
2012 Mar 27
2
drawing the graph with many nodes
...der = 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" "...
2012 Jun 04
1
Plotting with Rgraphviz
...t;, "e", "f") > colnames(test.matrix)<-c("a", "b", "c", "d", "e", "f") > test.matrix a b c d e f a 0 0 0 0 0 0 b 1 0 1 0 1 0 c 0 0 0 0 0 0 d 0 1 0 1 0 1 e 0 0 0 0 0 0 f 1 0 1 0 1 0 > am.graph<-new("graphAM", adjMat=test.matrix, edgemode="directed") > am.graph A graphAM graph with directed edges Number of Nodes = 6 Number of Edges = 9 > plot(am.graph, attrs = list(node = list(fillcolor = "lightblue"), + edge = list(arrowsize=0.5))) There...
2008 Apr 17
1
Finding a path using the Graph package
Hello, Does anyone know of a way of finding all the nodes that are between a pair of specified nodes in the excellent graph package (R vers 2.5.0). I have a class(graphAM) object and need to determine all possible pathways in this object. Here's an example: In the simple case of a--b--c (where -- denotes "conected to") the list of all pathways would be: ab ba abc cba cb bc. Thanks in advance, Dan
2007 Aug 28
4
Nodes & edges with similarity matrix
Hello, I apologise if someone has already answered this but I searched and googled but didn't find anything. I have a matrix which gives me the similarity of each item to each other. I would like to turn this matrix into something like what they have in the graph package with the nodes and edges. http://cran.r-project.org/doc/packages/graph.pdf . However I cannot find a method to
2009 Feb 10
0
Resize edge's label fontsize
Hi, I'm trying to create a connectivity diagram using RgraphViz library. I want to increase the edge's label fontsize, but the size did not change. Did I do something wrong ? M <- matrix(nrow=5,ncol=5,byrow=TRUE,data=mytable) colnames(M) <- levels(pf$agent) A <- new("graphAM", M, "directed", values = list(weight=M)) eAttrs <- list() ew <- as.character(unlist(edgeWeights(A))) names(ew) <- edgeNames(A, recipEdges = "distinct") eAttrs$label <- ew fs2 <- rep(c(72), length(ew)) names(fs2) <- edgeNames(A, recipEdges = "distin...
2009 Jun 24
0
Matrix vignette error in June 24 RC
...numEdges? graph.wgtMatrix: no visible global function definition for ?nodes? graph.wgtMatrix: no visible global function definition for ?edgeDataDefaults? graph.wgtMatrix: no visible global function definition for ?edgeData? Tsp2grNEL: no visible global function definition for ?ftM2graphNEL? coerce,graphAM-sparseMatrix: no visible global function definition for ?edgemode? coerce,graphNEL-TsparseMatrix: no visible global function definition for ?nodes? coerce,graphNEL-TsparseMatrix: no visible global function definition for ?edgemode? coerce,graphNEL-TsparseMatrix: no visible global function definitio...
2016 Jan 04
2
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
The bulk is on my forums - the final post for today is: Results to date: A. It looks like I am going to need a newer compiler for C - xlc/xlC V11 apparently does not understand this code: "/data/prj/cran/R-3.2.3/src/main/memory.c", line 2149.31: 1506-046 (S) Syntax error. I will have to check if R-devel has different code before asking for assistence. +2139 #ifdef