View source: R/chain_structure.R
| plot.chain_structure | R Documentation |
chain_structureRenders the hitting-probability matrix as a heatmap, with rows and columns ordered by communicating class so the block structure is visible at a glance. State labels along both axes are coloured by classification (absorbing / recurrent / transient). The subtitle summarises the chain-level properties (regular, reversible).
## S3 method for class 'chain_structure'
plot(x, show_values = TRUE, digits = 2L, ...)
x |
A |
show_values |
Logical. If |
digits |
Integer. Decimal places for in-cell labels. |
... |
Ignored. |
Cell colour encodes P(ever reach j | start at i). The diagonal
uses the return-time convention (P(return to j in >= 1 steps)),
matching markovchain::hittingProbabilities. A non-irreducible chain
shows zero off-block entries – visual evidence of one-way doors
between behavioural phases. An absorbing chain shows a column of 1's
for the absorbing state.
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.