shorten_name: Utility for shorter names Useful when plotting per-feature...

Description Usage Arguments Value

View source: R/helpers.R

Description

Utility for shorter names Useful when plotting per-feature figures where feature names could be cutoff

Usage

1
shorten_name(x, cutoff = 3, replacement = "..")

Arguments

x

vector of names

cutoff

number of maximum string length before start cutting off the middle

Value

vector of new names with .. replacing the middle part if name is longer than cutoff


MMUPHin documentation built on April 9, 2021, 6:01 p.m.