Momosaics uses primitive layers to draw many shapes or subplots as mosaics of plots.
You can install Momosaics from github with:
# install.packages("devtools")
devtools::install_github("vbonhomme/Momosaics")
# First load Momosaics
library(Momosaics)
# To benefit its datasets
library(Momocs)
mosaic_wrap(bot$coo) %>%
mosaic_empty_plot() %>%
add_outlines()
mosaic_wrap_factor(bot$coo, bot$fac$type) %>%
mosaic_empty_plot() %>%
add_outlines(col=palettize(bot$fac$type, col_summer)) %>%
add_text() %>%
add_headers()
More to come.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.