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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.