Skip to contents

Plots the exponentiated effect (for example a hazard ratio) against -log10(p) for every specification, so the cloud shows how much the association vibrates as the model changes.

Usage

voe_volcano(
  results,
  effect = estimate,
  p_value = p.value,
  colour = NULL,
  exponentiate = TRUE
)

Arguments

results

A tibble of per-specification results.

effect, p_value

<data-masking> columns for the estimate (link scale) and its p-value.

colour

Optional <data-masking> column mapped to point colour, for example n_adjusters.

exponentiate

Logical; exponentiate the effect for the x-axis.

Value

A ggplot2 object.

Examples

if (FALSE) { # \dontrun{
voe_volcano(results, colour = n_adjusters)
} # }