powered by
Add bins based on x, and y.
x
y
fig_bin(g2, ..., type = c("rectangle", "hexagon"), bins = c(10, 5), size_count = TRUE, 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
Type of bins to create.
A vector or list defining the bin size.
Whether to size the bins by count.
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.
Note that the function adds an aspect count which can be used, (see example).
count
# NOT RUN { # issues warning in interactive session # } # NOT RUN { g2(gaus, asp(x, y)) %>% fig_bin(type = "hexagon") # } # NOT RUN { # }
Run the code above in your browser using DataLab