break.labels: Breaks labels up in a list of strings. TODO: document better.

Usage Arguments Examples

View source: R/break.labels.R

Usage

1
break.labels(labels, label.width)

Arguments

labels
label.width

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (labels, label.width) 
{
    sapply(labels, function(label) {
        Reduce(function(x, y) {
            paste(x, y, sep = "\n")
        }, strwrap(label, label.width))
    })
  }

haberdashPI/wright.lab.util documentation built on Nov. 4, 2019, 1:25 p.m.