draw: Add shapes on top of another plot

Description Usage Arguments Value Examples

View source: R/gg_graphics.R

Description

Add shapes on top of another plot

Usage

1
draw(x, gg, ...)

Arguments

x

a Momocs object

gg

ggplot object, default to ggplot2::last_plot

...

additional parameters to feed geoms

Value

a ggplot object

Examples

1
2
3
4
5
bot %>% pick(1) %>% gg()
bot %>% pick(2) %>% draw()

bot %>% pile(alpha=0.2)
bot %>% coo_rotate(pi/2) %>% draw(col="slateblue")

MomX/Momocs2 documentation built on May 13, 2020, 4:28 a.m.