shorten_name {MMUPHin} | R Documentation |
Utility for shorter names Useful when plotting per-feature figures where feature names could be cutoff
shorten_name(x, cutoff = 3, replacement = "..")
x |
vector of names |
cutoff |
number of maximum string length before start cutting off the middle |
vector of new names with .. replacing the middle part if name is longer than cutoff