Learn R Programming

plotbb (version 0.1.1)

bb_bar: bb_boxplot

Description

boxplot layer

histogram layer

layer

significance layer

Usage

bb_bar(mapping = NULL, data = NULL, stat = "identity", width = 0.9, ...)

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

bb_errorbar(mapping = NULL, data = NULL, orientation = "y", width = 0.5, ...)

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

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

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

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

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

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

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

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

Value

A modified bbplot object

A modified bbplot object

A modified bbplot object

A modified bbplot object

Arguments

mapping

aesthetic mapping

data

layer data

stat

one of 'identity' or 'count'

width

bar width or errorbar cap width

...

addition parameter for the layer

orientation

one of 'y' or 'x'

position

one of 'identity' or 'jitter'

Author

Guangchuang Yu

Details

bbplot layers

Examples

Run this code
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