Learn R Programming

plotbb (version 0.0.6)

bb_lm: 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'

Value

A modified bbplot object

Details

bbplot layers

Examples

Run this code
# NOT RUN {
library(plotbb)
p <- bbplot(mtcars, bb_aes(mpg, disp, col=factor(cyl))) +
  bb_point() + bb_lm(bb_aes(group=cyl), lwd=2)
# }

Run the code above in your browser using DataLab