mdaplotg.showLegend: Show legend for mdaplotg

View source: R/mdaplotg.R

mdaplotg.showLegendR Documentation

Show legend for mdaplotg

Description

Shows a legend for plot elements or their groups.

Usage

mdaplotg.showLegend(
  legend,
  col,
  pt.bg = NA,
  pch = NULL,
  lty = NULL,
  lwd = NULL,
  cex = 1,
  bty = "o",
  position = "topright",
  plot = TRUE,
  ...
)

Arguments

legend

vector with text elements for the legend items

col

vector with color values for the legend items

pt.bg

vector with background colors for the legend items (e.g. for pch = 21:25)

pch

vector with marker symbols for the legend items

lty

vector with line types for the legend items

lwd

vector with line width values for the legend items

cex

vector with cex factor for the points

bty

border type for the legend

position

legend position ("topright", "topleft', "bottomright", "bottomleft", "top", "bottom")

plot

logical, show legend or just calculate and return its size

...

other parameters


svkucheryavski/mdatools documentation built on Aug. 25, 2023, 12:27 p.m.