identical_aes | R Documentation |
The ggplot2 package uses quosures to record aesthetic mappings. These record
both the mapping described as well as the environment in which the mapping
was described. As a result, it is difficult to compare mappings created by
students in one environment to mappings created on the fly by graders in
another environment. identical_aes
facilitates comparison by ignoring
the environments associated with an aesthetic mapping specification. If the
two specifications contain identical expressions, e.g. x = displ
,
etc., identical_aes
returns TRUE
.
identical_aes(a1, a2)
a1 |
The output of |
a2 |
The output of |
TRUE
or FALSE
Other functions for checking mappings:
get_mappings()
,
ith_mappings_use()
,
ith_mappings()
,
uses_mappings()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.