fig_histogram: Histogram

Description Usage Arguments Examples

View source: R/figures.R

Description

Create a histogram based on x and optionally group aspects.

Usage

1
2
fig_histogram(g2, ..., bin_width = 1, data = NULL,
  inherit_asp = TRUE, name = NULL)

Arguments

g2

An object of class g2r as returned by g2r.

...

Any option, aesthetic (asp), or animation (Animation).

bin_width

Width of bins.

data

A data.frame containing data to chart or a list.

inherit_asp

Whether to inherit aspects from g2r.

name

Name of figure, useful to apply functions to specific figures.

Examples

1
2
g2(iris, asp(Sepal.Length, group = Species, color = Species))  %>% 
  fig_histogram(bin_width = .3)

JohnCoene/g2r documentation built on March 6, 2021, 8:11 p.m.