Skip to contents

Plot histogram of background detection statistic

Usage

plot_background(
  S.bkg.vec,
  color = "black",
  binwidth = 0.2,
  xlimit = c(7, 30),
  ylimit = c(0.005, 500),
  factor = 1
)

Arguments

S.bkg.vec

A numeric vector of background detection statistic (e.g., \(\mathcal{S}\) values).

color

A character string specifying histogram color.

binwidth

Numeric. Width of histogram bins (default: 0.2).

xlimit

Numeric vector of length 2. Limits of x-axis (default: c(7, 30)).

ylimit

Numeric vector of length 2. Limits of y-axis (log10 scale, default: c(5e-3, 5e2)).

factor

Numeric. Rescaling factor for counts (default: 1).

Value

A list of one ggplot object named histogram.