uses_extra_mappings
checks if a student's plot contains more than the
required aesthetic mappings. Note that we still return TRUE
if
the student's plot differs from the required aesthetic mappings because they
are technically extra mappings from required set. We recommend you use
uses_mapping
checks for checking required mappings before uses_extra_mappings
.
Arguments
- p
A ggplot object or a layer extracted from a ggplot object with
get_geom_layer
orget_stat_layer
.- mappings
One or more aesthetic mappings created with
aes
.- local_only
If
TRUE
,uses_extra_mappings
will check only the mappings defined locally in a layer for the presence ofmappings
. IfFALSE
,uses_extra_mappings
will check formappings
in the combination of global and local methods that will be used to plot a layer.