plot_multi_histogram: Plot Multiple Histograms

View source: R/plot_multi_histogram.R

plot_multi_histogramR Documentation

Plot Multiple Histograms

Description

Plot multiple histograms for a given column (x axis) by category (colors). Both the stacked histogram and individual density lines are included, where the colors coincide and are labelled in the margin.

Usage

plot_multi_histogram(df, col.feature, col.label)

Arguments

df

A data frame.

col.feature

A character value specifying the column of df that will be used for the x axis.

col.label

A character value specifying the column of df that will be used for the colors or indivdual lines.

Value

A ggplot object.

Author(s)

Kelli F. Johnson


nwfsc-assess/VAST_WestCoast documentation built on July 4, 2023, 5:45 p.m.