Learn R Programming

fishplot (version 0.5)

drawLegend: Draw a legend beneath the plot

Description

Draw a legend beneath the plot

Usage

drawLegend(fish, xpos = 0, ypos = -5, nrow = NULL, cex = 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.

Value

No return value, outputs on graphics device

Examples

Run this code
# NOT RUN {
drawLegend(fish)
drawLegend(fish, 20, -20, 3)
# }

Run the code above in your browser using DataLab