Plot all shapes on the same graph

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

  • pile0: prepare

  • pile: plotter

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

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