Package: classbound 1.0.0

Vaibhav Manihar

classbound: Visualization for Classification Decision Boundaries

Exploring, visualizing, and comparing classification decision boundaries. Provides a unified interface for fitting classifiers and rendering 2D decision boundary plots, with support for 2D slice visualization (fixing non-plotted dimensions at reference values) and projection-based visualization for high-dimensional data (including Principal Component Analysis (PCA) and tour projections from the 'tourr' package). Supports native 'R' classifiers, 'tidymodels' workflows, and custom user-supplied models via a flexible adapter system. Includes an interactive 'Shiny' application ('explorapp') for visual exploration, data simulation, drawing, model comparison, probability surfaces, and reproducible exports.

Authors:Vaibhav Manihar [aut, cre], Natalia da Silva [aut], Ignacio Alvarez-Castro [aut]

classbound_1.0.0.tar.gz
classbound_1.0.0.zip(r-4.7-any)classbound_1.0.0.zip(r-4.6-any)
classbound_1.0.0.tar.gz(r-4.7-any)classbound_1.0.0.tar.gz(r-4.6-any)
classbound_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
classbound/json (API)

# Install 'classbound' in R:
install.packages('classbound', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/natydasilva/classbound/issues

Pkgdown/docs site:https://natydasilva.github.io

Datasets:

On CRAN:

Conda:

3.48 score 19 exports 54 dependencies

Last updated from:88f02dfd94. Checks:1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
source / vignettesOK289

Exports:as_classboundboundary_computeboundary_explore_ndboundary_workflow_setclassboundclassbound_paletteexplorappexport_data_csvexport_metrics_csvexport_models_rdsexport_plots_pdfexport_plots_pngfit_modelplot_boundarypredict_adapterpredict_modelpreprocess_datasimu_nsimulate_mixsim

Dependencies:base64encbslibcachemclassclicommonmarkcpp11crosstalkdigestDTevaluatefarverfastmapfontawesomefsggnewscaleggplot2gluegtablehighrhtmltoolshtmlwidgetshttpuvisobandjquerylibjsonliteknitrlabelinglaterlazyevallifecyclemagrittrmemoisemimeotelpromisesR6rappdirsRColorBrewerRcpprlangrmarkdownS7sassscalesshinysourcetoolstinytexvctrsviridisLitewithrxfunxtableyaml

Comparing Classifiers with tidymodels
Overview | Required packages | Step 1: Prepare data | Step 2: Define model specifications | Step 3: Create a workflow set | Step 4: Compute boundaries for all models | Step 5: Plot with facets | Step 6: Disagreement map | Using pre-trained workflows

Last update: 2026-09-30
Started: 2026-09-30

Comparing Models with tourr
Overview | Workflow overview | Step 1: Prepare data | Step 2: Fit models on the same data | Step 3: Generate one shared projection sequence | Step 4: Visualize at one tour frame | Step 5: Compare models at the same frame | Animating the tour (optional) | Key points

Last update: 2026-09-30
Started: 2026-09-30

Custom Predictions and Adapters
The prediction philosophy | 1. Standard classifiers (no extra work needed) | 2. Non-standard models (using predfun) | 3. Officially supported classifiers (built-in adapters) | The adapter contract | 4. Writing a custom S3 adapter

Last update: 2026-09-30
Started: 2026-09-30

Getting Started with classbound
What is classbound? | Installation | Quick start: one-step boundary plot | The modular API | Using different classifiers | Probability surface | Interactive exploration | What's next?

Last update: 2026-09-30
Started: 2026-09-30

High-Dimensional Classification Boundaries
The problem with more than two features | Setup | 2D Slice | Projection | When to use each strategy | High-dimensional data: data69_1

Last update: 2026-09-30
Started: 2026-09-30

Interactive Exploration with Explorapp
Launching Explorapp | Data modes | Import Data | Simulate Data | Draw Data | Model configuration | Visualization modes | Navigate | 2D Slice | Projection | Probability surface | Outlier injection | Performance metrics | Export | Import Workspace Models

Last update: 2026-09-30
Started: 2026-09-30

Readme and manuals

Help Manual

Help pageTopics
Convert a fitted model into a classbound objectas_classbound
Compute the classification decision boundaryboundary_compute
Explore high-dimensional classification boundariesboundary_explore_nd
Compute classification boundaries for a workflow_setboundary_workflow_set
Visualize a classification decision boundaryclassbound
Generate deterministic colors for classification classesclassbound_palette
Waveform Dataset (UCI)data69_1
Shiny app to visually explore and compare classification boundaries for built-in, custom, and tidymodels algorithms in 2Dexplorapp
Export data to CSVexport_data_csv
Export comparison metrics to CSVexport_metrics_csv
Export fitted models to RDSexport_models_rds
Export ggplot objects to a multi-page PDFexport_plots_pdf
Export ggplot objects to individual PNG files in a directoryexport_plots_png
Fit a machine learning modelfit_model fit_model.character fit_model.default fit_model.function
Visualize the classification decision boundaryplot_boundary
Plot a classbound model boundaryplot.classbound
Plot a computed boundaryplot.classbound_boundary
Predict using a fitted classbound modelpredict_model
Predict using a classbound modelpredict.classbound predict.classbound_multi
Preprocess data before model fittingpreprocess_data
Print a classbound modelprint.classbound print.classbound_multi
Simulate multivariate normal data for multiple classessimu_n
Simulate data using Gaussian mixture modelssimulate_mixsim
Summarize a classbound modelsummary.classbound summary.classbound_multi