uses_stat_param
is a mirror function of uses_geom_param
but instead of checking a plot's
geom layer, it checks that a plot's stat layer uses a specific stat parameter.
Arguments
- p
A ggplot object
- stat
A character string found in the suffix of a ggplot2 stat function, e.g.
"bin"
.- params
A named list of stat or geom parameter values, e.g.
list(bins = 200)
- i
A numerical index, e.g.
1
.