Travis-CI Build Status CRAN_Status_Badge Coverage Status CRAN downloads last month CRAN downloads grand total

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Momosaics

Momosaics uses primitive layers to draw many shapes or subplots as mosaics of plots.

Installation

You can install Momosaics from github with:

# install.packages("devtools")
devtools::install_github("vbonhomme/Momosaics")

Example

# 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.



vbonhomme/Momosaics documentation built on May 4, 2019, 10:56 a.m.