shorten_name {MMUPHin} | R 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

[Package MMUPHin version 1.1.0 Index]