Markov Transition (Animated) Plots
This is a quick post intended for animating how the transition matrix of a Markov chain changes between larger time steps, as well as showing the probability of the chain being in any specified state over time. This post uses the tidyverse, along with gganimate
.
> library(tidyverse)
> library(magrittr) ## using some aliases not loaded by default
> library(gganimate)