text_legend: Wrapper for legend function to quickly label a plot with text

View source: R/text_legend.r

text_legendR Documentation

Wrapper for legend function to quickly label a plot with text

Description

Wrapper for legend function to quickly label a plot with text

Usage

text_legend(
  legend,
  x = "topleft",
  bty = "n",
  adj = c(0.1, 0),
  cex = 1.3,
  text.col = rgb(0, 0, 0.3, 0.4),
  ...
)

Arguments

legend

see legend

x

see legend

bty

see legend

adj

see legend

cex

see legend

text.col

see legend

...

pass additional arguments to see legend

Author(s)

Nikolai Klibansky

Examples

x <- 1000
plot(rnorm(x),rnorm(x),col=rainbow(x),pch=16)
text_legend("random rainbow dots")
plot(rnorm(x),rnorm(x),col=heat.colors(x),pch=16)
text_legend("BAM!!",x="center",text.col=1,cex=4)

nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.