Skip to contents

Generate scree plot showing the feature importance

Usage

get_scree_plot(features_scores, show_names = TRUE, normalize = TRUE)

Arguments

features_scores

A vector of feature importance scores

show_names

a boolean indicating whether to show feature names or not

normalize

a boolean indicating whether to use max normalization or not

Value

A ggplot2 object

Examples

features_scores <- c(
  x1 = 0.8165005, x2 = -0.1178857, x3 = 0.1232284, x4 = -1.4277472,
  x5 = 1.6594211, x6 = -1.5554892, x7 = -0.7336138,
  x8 = -0.9416054, x9 = 0.9448299, x10 = -1.3629773
)
get_scree_plot(features_scores)