Learn R Programming

plotbb (version 0.1.1)

bb_labs: bb_labs

Description

change labels for bbplot

Usage

bb_labs(title = NULL, sub = NULL, xlab = NULL, ylab = NULL)

bb_title(title)

bb_sub(sub)

bb_xlab(xlab)

bb_ylab(ylab)

Value

A modified bbplot object

Arguments

title

title

sub

sub

xlab

xlab

ylab

ylab

Author

Guangchuang Yu

Details

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

Examples

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

Run the code above in your browser using DataLab