Message-ID: <70167.32564.qm@web110413.mail.gq1.yahoo.com>
Date: 2009-02-09T14:16:24Z
From: Hardi
Subject: (no subject)
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 = "distinct")
eAttrs$labelfontsize <- fs2
plot(A, attrs = list(node = list(label = "foo", fillcolor = "lightblue"), edge = list(color = "red")), edgeAttrs = eAttrs,recipEdges="distinct")
Thanks.