Learn R Programming

molaR (version 2.1)

OPC_Legend: function for building a legend in OPC plots

Description

crucial graphics subfunction

Usage

OPC_Legend(binColors = c(1:8), binNumber = 8, maskDiscard = F,
  lineSize = 2, textSize = 1.75, circSize = 1, textCol = "black",
  lineCol = "black")

Arguments

binColors
number sequence for bins and their colors
binNumber
numeric number of different bins
maskDiscard
logical determining whether faces will be blacked out because they are discarded
lineSize
numeric determining the thickness of the legend lines
textSize
numeric determining the size of the font
circSize
numeric for plotting size of the circle in pie chart legend
textCol
color for the text in the circle legend
lineCol
color for the lines in the legend OPC_Legend()