bb_lm {plotbb}R Documentation

layer

Description

layer

Usage

bb_lm(mapping = NULL, data = NULL, ...)

bb_point(mapping = NULL, data = NULL, position = "identity", ...)

bb_text(mapping = NULL, data = NULL, ...)

bb_tile(mapping = NULL, data = NULL, ...)

Arguments

mapping

aesthetic mapping

data

layer data

...

addition parameter for the layer

position

one of 'identity' or 'jitter'

Details

bbplot layers

Value

A modified bbplot object

Author(s)

Guangchuang Yu

Examples

library(plotbb)
p <- bbplot(mtcars, bb_aes(mpg, disp, col=factor(cyl))) +
  bb_point() + bb_lm(bb_aes(group=cyl), lwd=2)

[Package plotbb version 0.0.6 Index]