Grammar of Graphics on 'base' Graphics

Implements a grammar of graphics on top of the 'base' graphics system. A 'bbplot' object is built incrementally with a '+' operator from data, aesthetic mappings and layers, then rendered with base graphics, so plotbb layers can be mixed with ordinary base plotting calls. The package provides layers for points, lines, bars, histograms, densities, boxplots, violins, ribbons, smooths, error bars and tiles, together with colour and other aesthetic scales, automatic legends, faceting, themes, coordinate flipping and significance annotations.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("plotbb")

1.0.0 by Guangchuang Yu, 3 days ago


Browse source code at https://github.com/cran/plotbb


Authors: Guangchuang Yu [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


Artistic-2.0 license


Imports graphics, stats, rlang, scales, methods, utils

Suggests ape, aplot, dplyr, ggplotify, quarto, knitr, testthat


See at CRAN