Learn R Programming

PAutilities (version 1.1.0)

plot.transition: Plot the transitions and matchings from a transition object

Description

Plot the transitions and matchings from a transition object

Usage

# S3 method for transition
plot(x, ...)

Value

A plot of the predicted and actual transitions in a transition

object, as well as the matchings between them

Arguments

x

the object to plot

...

further methods passed to or from methods, currently unused

Examples

Run this code
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)
}

Run the code above in your browser using DataLab