plotPostState {MCMCpack} | R Documentation |
Plot the posterior probability that each time point is in each state.
plotPostState(mcmcout, y, m, legend.control=NULL, cex=0.8, lwd=1.2)
mcmcout |
The mcmc object containing the posterior density sample from a changepoint model. Note that this must have a prob.state attribute. |
y |
The data. |
m |
The number of changepoints. |
legend.control |
Control the location of the legend. It is necessary to pass both the x and y locations; i.e., c(x,y) . |
cex |
Control point size. |
lwd |
Line width parameter. |
Jong Hee Park, jhp@uchicago.edu, http://home.uchicago.edu/~jhp/.