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

View source: R/plot_transition.R

plot.transitionR Documentation

Plot the transitions and matchings from a transition object

Description

Plot the transitions and matchings from a transition object

Usage

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

Arguments

x

the object to plot

...

further methods passed to or from methods, currently unused

Value

A plot of the predicted and actual transitions in a transition object, as well as the matchings between them

Examples

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)
}

PAutilities documentation built on Aug. 21, 2022, 9:05 a.m.