trimLegendText: trims input text vector to length and adds etc if needed in...

View source: R/graphics.R

trimLegendTextR Documentation

trims input text vector to length and adds etc if needed in such a way that nchar(paste(newX, etc)) < length

Description

trims input text vector to length and adds etc if needed in such a way that nchar(paste(newX, etc)) < length

Usage

trimLegendText(x, length = 35, etc = "...", strip.white = TRUE)

Arguments

x

character vector of one or more strings

length

numeric, maximum string length allowed

etc

character, the flag to indicate removed characters (a suffix)

strip.white

logical, if TRUE strip newlines and tabs

Value

input chacater vector with elements possibly abbreviated


BigelowLab/tetramers documentation built on April 3, 2022, 8:22 p.m.