plot_multihistogram: Make a pretty histogram of multiple datasets.

View source: R/plot_hist.R

plot_multihistogramR Documentation

Make a pretty histogram of multiple datasets.

Description

If there are multiple data sets, it might be useful to plot them on a histogram together and look at the t.test results between distributions.

Usage

plot_multihistogram(
  data,
  log = FALSE,
  binwidth = NULL,
  bins = NULL,
  colors = NULL
)

Arguments

data

Dataframe of lots of pretty numbers, this also accepts lists.

log

Plot the data on the log scale?

binwidth

Set a static bin width with an unknown # of bins? If neither of these are provided, then bins is set to 500, if both are provided, then bins wins.

bins

Set a static # of bins of an unknown width?

colors

Change the default colors of the densities?

Value

List of the ggplot histogram and some statistics describing the distributions.

See Also

[stats::pairwise.t.test()] [ggplot2]

Examples

## Not run: 
 kittytime = plot_multihistogram(df)

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.