uses_extra_mappings | R Documentation |
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
.
uses_extra_mappings(p, mappings, local_only = FALSE)
p |
A ggplot object or a layer extracted from a ggplot object with
|
mappings |
One or more aesthetic mappings created with
|
local_only |
If |
A logical value.
require(ggplot2)
p <- ggplot(data = diamonds, aes(x = cut, sample = price)) +
geom_qq()
uses_extra_mappings(p, aes(sample = price))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.