plot: Plot method for the class hpj

plot.hpjR Documentation

Plot method for the class hpj

Description

Plot method for the class hpj

Usage

## S3 method for class 'hpj'
plot(
  x,
  prob = NULL,
  show_breaks = TRUE,
  main = "original + filter",
  use_ggplot = TRUE,
  ...
)

Arguments

x

an object of class hpj;

prob

coverage probability for the confidence interval of the filter;

show_breaks

logical, if TRUE vertical lines are drawn at the jumps;

main

title of the plot;

use_ggplot

logical, if TRUE the plot is done with ggplot2;

...

additional arguments passed to the plot function (if no ggplot2 is used).

Value

If use_ggplot is TRUE a ggplot object is returned, otherwise a base plot is shown and nothing is returned.


jumps documentation built on April 4, 2025, 2:22 a.m.