hmPlot {clickstream} | R Documentation |
Plots a Heatmap
Description
Plots a Heatmap
Usage
hmPlot(
object,
order = 1,
absorptionProbability = FALSE,
title = NA,
lowColor = "yellow",
highColor = "red",
flip = FALSE
)
Arguments
object |
The |
order |
Order of the transition matrix that should be plotted. Default is 1. |
absorptionProbability |
Should the heatmap show absorption probabilities? Default is FALSE. |
title |
Title of the heatmap. |
lowColor |
Color for the lowest transition probability of 0. Default is "yellow". |
highColor |
Color for the highest transition probability of 1. Default is "red". |
flip |
Flip to horizontal plot. Default is FALSE. |
Methods
- list("signature(object = \"MarkovChain\")")
Plots a heatmap for a specified transition matrix or the absorption probability matrix of a given
MarkovChain
object.
Author(s)
Michael Scholz michael.scholz@th-deg.de
See Also
Examples
# fitting a simple Markov chain and plotting a heat map
clickstreams <- c("User1,h,c,c,p,c,h,c,p,p,c,p,p,o",
"User2,i,c,i,c,c,c,d",
"User3,h,i,c,i,c,p,c,c,p,c,c,i,d",
"User4,c,c,p,c,d",
"User5,h,c,c,p,p,c,p,p,p,i,p,o",
"User6,i,h,c,c,p,p,c,p,c,d")
cls <- as.clickstreams(clickstreams, header = TRUE)
mc <- fitMarkovChain(cls)
hmPlot(mc)
[Package clickstream version 1.3.3 Index]