sourceable | R Documentation |
Define a 'ggplot2' object as "sourceable", which means that it knows how to keep track of its source code (parameter must be a 'ggplot2' object)
sourceable(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.