This helper function generates a set of unique labels given unique IDs and not necessarily unique names.
h_unique_labels(ids, nms = NULL)(character or NULL)
unique IDs.
(character or NULL)
not necessarily unique names if provided.
Character vector where empty names are replaced by the IDs and non-unique names are made unique by appending the IDs in parentheses.