search for: eattr

Displaying 4 results from an estimated 4 matches for "eattr".

Did you mean: attr
2009 Feb 10
0
Resize edge's label fontsize
...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 = "distinct") eAttrs$labelfontsize <- fs2 plot(A, attrs = list(...
2006 Jul 06
1
Rgraphviz: Setting the edge width
...]]]$edges, tmp[2]) edL[[tmp[2]]]$edges <- c(edL[[tmp[2]]]$edges, tmp[1]) } G <- new("graphNEL", nodes=V, edgeL=edL) nAttrs <- list() nAttrs$fillcolor <- c("red","red","blue","blue") names(nAttrs$fillcolor) <- V eAttrs <- list(color = c("A~B" = "green", "B~C" = "green", "C~D" = "yellow", "A~C" = "yellow")) plot(G, "neato", nodeAttrs = nAttrs, edgeAttrs = eAttrs)
2006 Jul 06
1
Rgraphviz: How to control the colours of edges in a graph
...B, B:C, C:D, D:A, A:C. I want the vertices A and B to be red and C and D to be blue. The problem is the following: I want the edges A:B and B:C to be green and the edges C:D and C:A to be yellow, while the edge A:C can have the default colour black. I assume that I have to specify this using the edgeAttrs-argument in the plot function, but I can't figure out how. Can anyone help? Thanks. S?ren Code for drawing the graph: library(Rgraphviz) V <- c("A","B","C","D") E <- list(c("A","B"),c("B","C"),c(...
2006 Aug 31
1
problem with postscript output of R-devel on Windows
...t;1.1.8" "1.11.29" fileName<-paste(experiment, contrast, "FDR", FDR, "Graph", "ps", sep=".") postscript(file=fileName, paper="special",width=width, height=height) #set up graphics device plot(result.gN, layout.param, nodeAttrs = nAttrs, edgeAttrs = eAttrs, main=paste(paste("Experiment:", experiment, "; Contrast:", contrast,"; FDR:", FDR, sep=""), paste("Min. connections ==", min.edges, "Min. citations per connection ==", min.cites, "Additional se...