Learn R Programming

plotbb (version 0.1.1)

bb_legend: bb_legend

Description

Add legend for aesthetic mapping.

Usage

bb_legend(
  position = "topright",
  title = NULL,
  aesthetic = "col",
  pch = 19,
  bty = "n",
  ...
)

Value

A modified bbplot object

Arguments

position

legend position passed to graphics::legend.

title

legend title.

aesthetic

currently only supports "col".

pch

point shape used in legend.

bty

box type passed to graphics::legend.

...

additional parameters passed to graphics::legend.

Author

Guangchuang Yu