implement R-based visualisation of HMM model PDFs