Skip to contents

Save a PheWAS plot and optional audit sidecar

Usage

save_phewas_plot(
  plot,
  filename,
  width = 10,
  height = 6,
  units = "in",
  dpi = 300,
  audit_file = NULL,
  ...
)

Arguments

plot

A ggplot returned by a phewasFlow plotting function.

filename

One or more destination image or PDF paths.

width, height, units, dpi

Passed to ggplot2::ggsave().

audit_file

Optional JSON path for the plot's selections and source data summary.

...

Additional arguments passed to ggplot2::ggsave().

Value

The normalized output path or paths, invisibly.