trimLegendText | R Documentation |
nchar(paste(newX, etc)) < length
trims input text vector to length and adds etc if needed in such a way that
nchar(paste(newX, etc)) < length
trimLegendText(x, length = 35, etc = "...", strip.white = TRUE)
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 |
input chacater vector with elements possibly abbreviated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.