plot_bar_weights: Plot a Bar Chart of Feature Weights

Description Usage Arguments Examples

View source: R/plot.R

Description

This function plots weights of non-zero features.

Usage

1

Arguments

df

A data frame that has columns: Feature, Weight.

n_top

An integer number showing how many top features are displayed. If NULL, all non-zero features are displayed.

Examples

1
2
3
4
library(reflect)
df <- data.frame(Feature = names(egfr_result$shc$weight),
                 Weight = egfr_result$shc$weight)
plot_bar_weights(df)

korkutlab/reflect documentation built on July 5, 2021, 7:38 a.m.