Displaying 2 results from an estimated 2 matches for "recipedg".
Did you mean:
recipe
2009 Feb 10
0
Resize edge's label fontsize
...ge.
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(node = list(label = "foo", fillcolor = "lightblue"), edge
= list(color = "...
2010 Jun 03
1
Memory leak using Rgraphviz
...ing short function that reproduces the problem:
foo <- function () {
library(Rgraphviz)
set.seed(123)
V <- letters[1:26]
M <- 1:2
g1 <- randomGraph(V, M, 0.5)
edgemode(g1) <- "directed"
x <- layoutGraph(g1,name="foo",layoutType="twopi", recipEdges="distinct")
}
I expected that any memory allocated by this function would be freed when it returns, but that's not the case. Is there something that I need to be doing to to clean up after using layoutGraph?
Thanks,
Andreas