mdaplotg.showLegend function

Show legend for mdaplotg

Show legend for mdaplotg

Shows a legend for plot elements or their groups.

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
  • Maintainer: Sergey Kucheryavskiy
  • License: MIT + file LICENSE
  • Last published: 2024-08-19