opt_setting: Bar plots of co-clustering optimization results.

View source: R/opt_setting.R

opt_settingR Documentation

Bar plots of co-clustering optimization results.

Description

Bar plots of co-clustering optimization results.

Usage

opt_setting(df.res, nas, summary = "mean")

Arguments

df.res

A data.frame of validation results in co-clustering optimization.

nas

The target metrics, which are column names of df.res.

summary

The method to summarize ranks of nas across datasets.

Value

An object of ggplot.

Author(s)

Jianhai Zhang jzhan067@ucr.edu
Dr. Thomas Girke thomas.girke@ucr.edu

Examples

set.seed(10)
dimred <- c('PCA', 'UMAP'); dims <- seq(5, 80, 15) 
graph <- c('knn', 'snn'); cluster <- c('wt', 'fg', 'le') 
df.para <- expand.grid(dataset=c('dataset1', 'dataset2'), norm='FCT', fil='fil1', dimred=dimred, dims=dims, graph=graph, cluster=cluster, stringsAsFactors = FALSE) 
df.para$auc <- round(runif(nrow(df.para), 0, 1), 2)
df.para$accuracy <- round(runif(nrow(df.para), 0, 1), 2)
df.para[1:5, ] 
opt_setting(df.para, nas=c('auc', 'accuracy'))

jianhaizhang/spatialHeatmap documentation built on Nov. 28, 2024, 4:44 p.m.