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

View source: R/helpers.R

shorten_nameR Documentation

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

Description

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

Usage

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


biobakery/MMUPHin documentation built on March 30, 2024, 4:50 a.m.