Learn R Programming

mdatools (version 0.9.4)

mdaplot.showLegend: Plot legend

Description

Shows a legend for plot elements or their groups.

Usage

mdaplot.showLegend(legend, col, pch = NULL, lty = NULL, lwd = NULL,
  bty = "o", position = "topright", plot = T)

Arguments

legend

vector with text elements for the legend items

col

vector with color values for the legend items

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

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