bb_legend: bb_legend

View source: R/scale.R

bb_legendR Documentation

bb_legend

Description

Add legend for aesthetic mapping.

Usage

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

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.

Value

A modified bbplot object

Author(s)

Guangchuang Yu


plotbb documentation built on Jan. 15, 2026, 5:07 p.m.

Related to bb_legend in plotbb...