[R-sig-eco] demographic matrix diagrams?

2010-10-30 Thread Ben Bolker
before I waste time doing it, has anyone written code that uses Rgraphviz to translate demographic (Leslie/Lefkovitch) matrices into state diagrams? Can't find anything on the web ... Ben Bolker ___ R-sig-ecology mailing list

[R-sig-eco] demographic matrix graphs: ugly but a start

2010-10-30 Thread Ben Bolker
library(Rgraphviz) X - matrix(c(0, 0.1, 1.5, 1, 0, 0, 0, 0.4, 0.2), byrow=TRUE, nrow=3) dimnames(X) - list(c(J,A1,A2),c(J,A1,A2)) X Xg - as(t(X),graphNEL) plot(Xg,recipEdges=distinct) ew - as.character(unlist(edgeWeights(Xg))) ew -