bbplot: bbplot

Description Usage Arguments Details Value Author(s) Examples

View source: R/bbplot.R

Description

bbplot

Usage

1
bbplot(data, mapping = bb_aes())

Arguments

data

data

mapping

variable mapping

Details

a proof of concept for grammar of graphics based on base plot. The bbplot class contains data (input data), mapping (aesthetic mapping), layer (a list of plot layers), theme (theme setting) and labs (label setting, including title, subtitle, x and y labels).

Value

bbplot object

Author(s)

Guangchuang Yu

Examples

1
2
3
library(plotbb)
p <- bbplot(mtcars, bb_aes(mpg, disp, col=factor(cyl)))
p + bb_grid(col='grey50', lty='dashed') + bb_point(pch=19)

YuLab-SMU/plotbb documentation built on Sept. 10, 2021, 2:42 a.m.