pile: Plot all shapes on the same graph

Description Usage Arguments Functions Note Examples

View source: R/gg_graphics.R

Description

Plot all shapes on the same graph

Usage

1
2
3
pile0(x)

pile(x, ..., from_col, geom, size, alpha)

Arguments

x

a mom_tbl object

...

additional parameters to pass to main geom

from_col

column name to use for plotting (only for mom_tbl where it defaults to coo)

geom

ggplot2 geom to use, typically geom_path or geom_point

size, alpha

to feed geom

Functions

Note

formerly named stack in retired Momocs. stack was quite a fine name but a stack is not something more fundamental in informatics. Also, pile is shorter.

Examples

1
2
3
bot %>% pick(1) %>% pile()
pile(bot$coo)
bot %>% dplyr::rename(coo2=coo) %>% pile(from_col=coo2)

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