a proof of concept for grammar of graphics based on base plot. The bbplot class contains data (input data), mapping (aesthetic mapping), layer (a list of plot layers), theme (theme setting) and labs (label setting, including title, subtitle, x and y labels).
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.