ImportancePlot: Plot the feature importance

View source: R/plot.R

ImportancePlotR Documentation

Plot the feature importance

Description

Plot the feature importance

Usage

ImportancePlot(meta_info, train, importance_matrix, top_n = 20)

Arguments

meta_info

importance_matrix generated by dropSplit.

train

train dataset generated by dropSplit.

importance_matrix

importance_matrix generated by dropSplit.

top_n

Number of the top important features to plot.

Value

A a list of ggplot objects.

Examples

counts <- simSimpleCounts()
result <- dropSplit(counts)
pl <- ImportancePlot(result$meta_info, result$train, result$importance_matrix, top_n = 20)
pl$Importance
pl$preDefinedClassExp

zh542370159/dropSplit documentation built on June 19, 2022, 2:49 p.m.