mosaic: Plot all shapes as a mosaic

Description Usage Arguments Value See Also Examples

View source: R/gg_graphics.R

Description

Plot all shapes as a mosaic

Usage

1
mosaic(x, f, ..., ncol, geom)

Arguments

x

a Momocs object

f

a factor column to skip lines after the end of each level

...

additional parameters to feed geom(...).

ncol

integer that specifies the number of columns. Otherwise, a roughly squared mosaic is produced.

geom

which ggplot2::geom to use (ggplot2::geom_polygon by default)

Value

a ggplot object

See Also

Other family_picture: inspect()

Examples

1
2
bot %>% mosaic()
mosaic(bot, type, ncol=6, ggplot2::aes(col=type))

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