[R] Problem with plotmat package
H
@gent@ @end|ng |rom medd@t@|nc@com
Thu Sep 16 02:40:10 CEST 2021
I am using plotmat 1.6.5 (part of the diagram package) in R 3.6 to plot Markov transition charts but have run into an issue that I was hoping someone could shed light on here. I did e-mail the maintainer over a month ago but have not received a reply.
The issue is that the directional arrows point in the wrong direction. A brief example:
stateNames <- c("Rain", "Nice")
Oz <- matrix(c(0.25, 0.75, 0.6, 0.4), nrow = 2, byrow = TRUE)
rownames(Oz) <- stateNames; colnames(Oz) <- stateNames
plotmat(Oz, pos = c(1, 1), lwd = 1, box.lwd = 2, cex.txt = 0.8, box.size = 0.1, box.type = "circle", box.prop = 0.5, box.col = "light yellow", arr.length = 0.2, arr.width = 0.2, self.cex = 0.4, self.shifty = 0.01, self.shiftx = 0.13, main = "")
In the above example both arrows seem to point in the direction opposite to what I expect. Has anyone encountered this and know how to fix it?
Thanks.
More information about the R-help
mailing list