Learn R Programming

climatehealth (version 1.0.0)

plot_distributions: Plot histograms of column distributions.

Description

Plot histograms of column distributions.

Usage

plot_distributions(
  df,
  columns,
  title,
  xlabs = NULL,
  save_hists = FALSE,
  output_path = NULL
)

Arguments

df

The dataframe containing the data.

columns

The columns to plot distributions for.

title

The title of your plot.

xlabs

A character vector of x-axis labels (e.g., with units) corresponding to the columns.

save_hists

Whether to save the histograms to file.

output_path

The path to save your distributions to.