drawLegend | R Documentation |
Draw a legend beneath the plot
drawLegend(
fish,
xpos = 0,
ypos = -5,
nrow = NULL,
cex = 1,
widthratio = NULL,
xsp = 1
)
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 |
No return value, outputs on graphics device
## Not run:
drawLegend(fish)
drawLegend(fish, 20, -20, 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.