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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to