strmultline: Replace some spaces in multi-word sentences by newlines

Description Usage Arguments Details Value Author(s) See Also

Description

Replace a space character by a newline in a multi-word sentence to get a better height / width ratio

Usage

1
strmultline(strings, ratio = 0.2)

Arguments

strings

a character vector containing the multi-word sentences to be split

ratio

the desired ratio height / width

Details

Very long tags, for example GO Term descriptions, make a bad tag cloud. strmultline tries to chop up such a long sentence into multiple (currently two) lines, to get a better height / width ratio.

Value

A character vector containing the modified sentences.

Author(s)

January Weiner <january.weiner@gmail.com>

See Also

tagcloud


tagcloud documentation built on May 2, 2019, 5:02 a.m.