plot_hd_bars: Add bars marking quantiles to ggplot object created by...

View source: R/plot_utils.R

plot_hd_barsR Documentation

Add bars marking quantiles to ggplot object created by plot_scat2. See examples in the README file and the vignettes.

Description

Add bars marking quantiles to ggplot object created by plot_scat2. See examples in the README file and the vignettes.

Usage

plot_hd_bars(
  p,
  q_seq = seq(0.1, 0.9, 0.1),
  col = "grey21",
  width = 0.5,
  q_size = 0.5,
  md_size = 1,
  alpha = 1
)

Arguments

p

A ggplot object returned by plot_scat2.

q_seq

A sequence of quantiles - default = deciles.

col

Colour of the bars

width

Length of the bars

q_size

Thickness of the bars, except for the median

md_size

Thickness of the median bar

alpha

Alpha transparency

Value

A ggplot object


GRousselet/rogme documentation built on Nov. 12, 2022, 4:38 a.m.