bblabs: bb_labs

Description Usage Arguments Details Value Author(s) Examples

Description

change labels for bbplot

Usage

1
2
3
4
5
6
7
8
9
bb_labs(title = NULL, sub = NULL, xlab = NULL, ylab = NULL)

bb_title(title)

bb_sub(sub)

bb_xlab(xlab)

bb_ylab(ylab)

Arguments

title

title

sub

sub

xlab

xlab

ylab

ylab

Details

setting one or several of 'title', 'sub', 'xlab', and 'ylab'

Value

A modified bbplot object

Author(s)

Guangchuang Yu

Examples

1
2
3
4
5
library(plotbb)
p <- bbplot(mtcars, bb_aes(mpg, disp, col=factor(cyl))) + bb_point(pch=19)
p + bb_labs(title = "hello", sub = "just for demo",
            xlab="this is xlab", ylab = "this is ylab") +
    bb_title("hello world") # last one rules

YuLab-SMU/bbplot documentation built on Sept. 8, 2021, 11:42 p.m.