facet_histogram: Faceted distribution of variables as histograms

View source: R/facet_histogram.R

facet_histogramR Documentation

Faceted distribution of variables as histograms

Description

Faceted distribution of variables as histograms

Usage

facet_histogram(
  data,
  ...,
  statistic = c("mean", "median"),
  .scales = c("fixed", "free", "free_x", "free_y"),
  .colour = "grey80"
)

Arguments

data

The data

...

The variables to plot. Unquoted, dplyr way

statistic

One of "mean", "median". Defaults to "mean"

.scales

Character. The scales arg of ggplot2::facet_wrap(). One of c("fixed", "free","free_x", "free_y"). Defaults to "fixed"

.colour

The colour of the bars. Defaults to "grey80"

Value

A ggplot

Examples

facet_histogram(
mtcars, everything(), .scales = "free", statistic = "median"
)


lefkiospaikousis/lpmisc documentation built on July 19, 2022, 3:16 a.m.