nos.legend {NostalgiR} | R Documentation |
nos.legend Generates a text-based legend for plots.
Description
Generates a text-based legend that relates plot characters to functional values or outcomes.
Usage
nos.legend(nams, legend = 1:length(nams), width)
Arguments
nams |
A vector that specifies what each plot symbol represents. |
legend |
A character vector of the plot symbols. |
width |
A numeric value that specifies the number of characters to be printed before a line-break. |
Author(s)
Hien D. Nguyen
See Also
Examples
## Generates a legend that relates the plot symbols c('a','b','c') to
## the functional values c(1,2,3) with line-breaks every 14 characters.
nos.legend(c(1,2,3),c('a','b','c'),14)
[Package NostalgiR version 1.0.2 Index]