Description Usage Arguments Author(s) See Also Examples
Generates a text-based legend that relates plot characters to functional values or outcomes.
1 | nos.legend(nams, legend = 1:length(nams), width)
|
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. |
Hien D. Nguyen
1 2 3 | ## 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)
|
Loading required package: txtplot
Legend:
a ~ 1; b ~ 2;
c ~ 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.