addCaption appends a string to a ggplot object as attribute 'caption',
and prints it to the console. No copy is made.
| 1 | addCaption(x, caption)
 | 
| x | a ggplot object | 
| caption | a character string | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.