plot_gapstat: Plot a Gap Statistic Profile

Description Usage Arguments Examples

View source: R/plot.R

Description

This function plots a gap statistic profile as a function of the number of non-zero features, and optionally as a function of tunning parameters.

Usage

1
plot_gapstat(df, plot_tuning_parameter = FALSE)

Arguments

df

A data frame that has columns: Wbound, NumberFeatures, GapStat, SD.

plot_tuning_parameter

A logical value. If TRUE, it also draws a second plot of gap statistic as a function of tunning parameters. Default FALSE.

Examples

1
2
3
library(reflect)
df <- egfr_result$gapstat_bestwbound$df_gapstat
plot_gapstat(df)

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