Stop with a user friendly message if a user is missing the ggplot2 package or has an old version of it.
.check_for_ggplot2(version = "3.0.0")
minimal required ggplot2 version
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.