R/plot_mstate.R

Defines functions plot_mstate

Documented in plot_mstate

plot_mstate <- function(tmat){
  m <- (!is.na(tmat)) + 0
  colnames(m) <- rownames(m) <- 1:ncol(tmat)
  m1 <- graph.adjacency(m)
  plot.igraph(m1, vertex.color="green",
              edge.arrow.size=0.3,
              edge.color = "black")
}
niklasmaltzahn/multistate documentation built on Nov. 4, 2019, 10:06 p.m.