R/plot.ContObservHMM.R

plot.ContObservHMM <-
function(x, Series=x$Observations, ylabel="Observation series", xlabel="Time", ...)
{
	plot(Series, type = "l", col="dodgerblue4", ylab=ylabel, xlab=xlabel, lwd=1.5)
	nq<-x$Viterbi
	nq<-ifelse((x$Viterbi)==1, min(Series), max(Series))
	lines(nq, col="firebrick", lwd=1.5)
}

Try the HMMCont package in your browser

Any scripts or data that you put into this service are public.

HMMCont documentation built on May 1, 2019, 10:46 p.m.