Skip to contents

The ggplot2 version of the plot() method of sharp_scan_cdf(): the sharp set for \(P(Y \le t)\) at the scan's \(\lambda\) as a filled band with solid edges, the outer band dashed, the confidence set dotted and the estimate under MAR (\(\lambda = 0\)) as a line, all pointwise in \(t\). The curve layers carry t, y, series and edge in long form.

Usage

# S3 method for class 'sharp_scan_cdf'
autoplot(
  object,
  colors = scan_colors,
  text_col = "grey20",
  xlab = "t",
  ylab = NULL,
  main = NULL,
  ...
)

Arguments

object

A "sharp_scan_cdf" object.

colors

Named colours sharp and naive, as in plot.sharp_scan().

text_col

Colour for text and reference lines.

xlab, ylab, main

Axis labels and title; ylab = NULL gives the same default as plot().

...

Not used.

Value

A ggplot object.

See also