powered by
Create a histogram based on x and optionally group aspects.
x
group
fig_histogram(g2, ..., bin_width = 1, data = NULL, inherit_asp = TRUE, name = NULL)
An object of class g2r as returned by g2r.
g2r
Any option, aesthetic (asp), or animation (Animation).
asp
Animation
Width of bins.
A data.frame containing data to chart or a list.
data.frame
list
Whether to inherit aspects from g2r.
Name of figure, useful to apply functions to specific figures.
# NOT RUN { g2(iris, asp(Sepal.Length, group = Species, color = Species)) %>% fig_histogram(bin_width = .3) # }
Run the code above in your browser using DataLab