ith_stat_is
checks whether the ith layer uses the prescribed type of stat
Arguments
- p
A ggplot object
- stat
A character string that corresponds to the suffix of a ggplot2
stat_
function, e.g."identity"
.- i
A numerical index that corresponds to the first layer of a plot (1), the second layer (2), and so on.
ith_stat_is
will check the stat used by the ith layer.
See also
Other functions for checking stats:
get_stats()
,
ith_stat()
,
uses_stats()