label.feature {SHAPforxgboost}R Documentation

Modify labels for features under plotting

Description

label.feature helps to modify labels. If a list is created in the global environment named new_labels (!is.null(new_labels), the plots will use that list to replace default list of labels labels_within_package.

Usage

label.feature(x)

Arguments

x

variable names

Value

a character, e.g. "date", "Time Trend", etc.


[Package SHAPforxgboost version 0.1.3 Index]