set_risk_group_names-familiarCollection-method: Rename risk groups for plotting and export

set_risk_group_names,familiarCollection-methodR Documentation

Rename risk groups for plotting and export

Description

Tabular exports and figures created from a familiarCollection object can be customised by providing names for risk groups in survival analysis.

Usage

## S4 method for signature 'familiarCollection'
set_risk_group_names(x, old = NULL, new = NULL, order = NULL)

Arguments

x

A familiarCollection object.

old

(optional) Set of old labels to replace.

new

Set of replacement labels. The number of replacement labels should be equal to the number of provided old labels or the full number of labels. If a subset of labels is to be replaced, both old and new should be provided.

order

(optional) Ordered set of replacement labels. This is used to provide the order in which the labels should be placed, which affects e.g. levels in a plot. If the ordering is not explicitly provided, the old ordering is used.

Details

Labels convert the internal naming for risk groups to the requested label at export or when plotting. This enables customisation of risk group names. Currently assigned labels can be found using the get_risk_group_names method.

Value

A familiarCollection object with updated labels.

See Also

  • familiarCollection for information concerning the familiarCollection class. * get_risk_group_names for obtaining currently assigned risk group labels.


familiar documentation built on Sept. 30, 2024, 9:18 a.m.