Skip to contents

Plot coincidence significance values over time

Usage

plot_coinc(
  coinc.res,
  tzero = NULL,
  p_crit = 0.05,
  a = 2.3,
  alpha.det = 0.3,
  legend.position = "tr",
  annotate.vals = FALSE,
  annotate.thresh = p_crit
)

Arguments

coinc.res

A data.frame returned from coincide_P0().

tzero

Optional GPS time to align x-axis (default: first timestamp in coinc.res).

p_crit

Critical p-value to draw significance threshold (default: 0.05).

a

Scaling factor for significance function (default: 3).

legend.position

Position of legend inside plot. One of "tr", "tl", "br", "bl".

annotate.vals

A logical. Annotate values above threshold (default: FALSE).

annotate.thresh

A numeric. Values will be annotated only if its corresponding probability is smaller than this `annotate.thresh`,

Value

A ggplot object with time-series of coincidence significance.