Replacements for ggplot2::scale_size_area()
and
ggplot2::scale_size_binned_area()
with convenient defaults for
geom_hextile()
.
Arguments
- name
The name of the scale. Used as the axis or legend title. If
waiver()
, the default, the name of the scale is taken from the first mapping used for that aesthetic. IfNULL
, the legend title will be omitted.- ...
Arguments passed on to
ggplot2::continuous_scale()
orggplot2::binned_scale()
.- max_size
Size of largest points.
- oob
One of:
Function that handles limits outside of the scale limits (out of bounds). Also accepts rlang lambda function notation.
The default (
scales::squish()
) squishes out of bounds values into range.scales::censor()
for replacing out of bounds values withNA
.scales::squish_infinite()
for squishing infinite values into range.