knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)

geomclone

This is a test package for cloning ggplot2 Layers using "ggplot2_add" (https://github.com/tidyverse/ggplot2/pull/2309).

Example

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))


yutannihilation/geomclone documentation built on May 29, 2019, 12:19 p.m.