nos.legend: nos.legend Generates a text-based legend for plots.

Description Usage Arguments Author(s) See Also Examples

View source: R/NostalgiR.R

Description

Generates a text-based legend that relates plot characters to functional values or outcomes.

Usage

1
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

txtplot.

Examples

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)

Example output

Loading required package: txtplot
Legend: 
a ~ 1; b ~ 2; 
c ~ 3

NostalgiR documentation built on May 2, 2019, 2:45 p.m.