drawLegend: Draw a legend beneath the plot

View source: R/draw.R

drawLegendR Documentation

Draw a legend beneath the plot

Description

Draw a legend beneath the plot

Usage

drawLegend(
  fish,
  xpos = 0,
  ypos = -5,
  nrow = NULL,
  cex = 1,
  widthratio = NULL,
  xsp = 1
)

Arguments

fish

A fish object

xpos

The x coordinate at which to draw the left side of the legend (default 0)

ypos

The y coordinate at which to draw the top of the legend (default -5)

nrow

An integer number of rows which should be used for the legend

cex

A numerical value giving the amount by which the legend should be magnified relative to the default.

widthratio

adjusts width of columns relative to longest legend entry (smaller value = more spacing)

xsp

horizontal spacing factor

Value

No return value, outputs on graphics device

Examples

## Not run: 
drawLegend(fish)
drawLegend(fish, 20, -20, 3)

## End(Not run)

chrisamiller/fishplot documentation built on Sept. 15, 2023, 1:53 p.m.