library(animint2)
gg <- ggplot(faithfuld, aes(x = waiting, y = eruptions, z = density)) +
geom_contour()
print(gg)
if(requireNamespace("ggplot2")){
print(gg)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.