Helper function to filter aesthetic mappings based on geometry
a ggplot2 Geom object
a ggplot2 aesthetic mapping
the mapping filtered by accepted aesthetics for the given Geom
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.