knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
This is a test package for cloning ggplot2 Layers using "ggplot2_add" (https://github.com/tidyverse/ggplot2/pull/2309).
library(ggplot2) p <- ggplot(iris, aes(Sepal.Length, Petal.Length)) + geom_line(colour = alpha("red", 0.5), size = 5) + geom_point(colour = alpha("green", 0.5), size = 5) + theme_minimal() p
library(geomclone) p + geom_clone(colour = alpha("blue", 0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.