Learn R Programming

jumps (version 1.0)

plot.hpj: Plot method for the class hpj

Description

Plot method for the class hpj

Usage

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

Value

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

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