| bb_lm | R Documentation |
layer
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, ...)
mapping |
aesthetic mapping |
data |
layer data |
... |
addition parameter for the layer |
position |
one of 'identity' or 'jitter' |
bbplot layers
A modified bbplot object
Guangchuang Yu
library(plotbb) p <- bbplot(mtcars, bb_aes(mpg, disp, col=factor(cyl))) + bb_point() + bb_lm(bb_aes(group=cyl), lwd=2)