View source: R/plot_transition.R
| plot.transition | R Documentation | 
transition objectPlot the transitions and matchings from a transition object
## S3 method for class 'transition'
plot(x, ...)
| x | the object to plot | 
| ... | further methods passed to or from methods, currently unused | 
A plot of the predicted and actual transitions in a transition
object, as well as the matchings between them
predictions <- (sample(1:100)%%2)
references  <- (sample(1:100)%%2)
window_size <- 7
if (isTRUE(requireNamespace("matchingMarkets", quietly = TRUE))){
  transitions <- get_transition_info(
    predictions, references, window_size
  )
  plot(transitions)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.