histogram_plot: histogram_plot

View source: R/histogram_plot.R

histogram_plotR Documentation

histogram_plot

Description

creates a histogram plot

Usage

histogram_plot(
  data,
  x,
  y = "..count..",
  group = NULL,
  facet_x = NULL,
  facet_y = NULL,
  palette = ez_col,
  position = "stack",
  bins = 30,
  alpha = 0.5,
  facet_scales = "fixed",
  facet_ncol = NULL,
  legend_ncol = NULL,
  env = parent.frame()
)

Arguments

data

A data.frame.

x

A named character value. Evaluates to a column.

y

A named character value. Evaluates to a column.

group

A character value. Evaluates to a column.

facet_x

A character value. Evaluates to a column.

facet_y

A character. Evaluates to a column.

palette

Colour function.

position

Either "stack" (default) or "fill"

bins

number of bins

alpha

fill alpha

facet_scales

Option passed to scales argument in facet_wrap or facet_grid. Default is "fixed".

facet_ncol

Option passed to ncol argument in facet_wrap or facet_grid. Default is NULL.

legend_ncol

Number of columns in legend.

env

environment for evaluating expressions.

Examples

histogram_plot(airquality, "Wind", group = "Month")
histogram_plot(airquality, "Wind", "..density..", facet_x = "Month")

ezplot documentation built on Aug. 12, 2022, 1:07 a.m.