Skip to content

classmap

Visualizing Classification Results

v1.2.7 · Apr 29, 2026 · GPL (>= 2)

Description

Tools to visualize the results of a classification or a regression. The graphical displays include stacked plots, silhouette plots, quasi residual plots, class maps, predictions plots, and predictions correlation plots. Implements the techniques described and illustrated in Raymaekers J., Rousseeuw P.J., Hubert M. (2022). Class maps for visualizing classification results. \emph{Technometrics}, 64(2), 151–165. <doi:10.1080/00401706.2021.1927849> (open access), Raymaekers J., Rousseeuw P.J.(2022). Silhouettes and quasi residual plots for neural nets and tree-based classifiers. \emph{Journal of Computational and Graphical Statistics}, 31(4), 1332–1343. <doi:10.1080/10618600.2022.2050249>, and Rousseeuw, P.J. (2026). Explainable Linear and Generalized Linear Models by the Predictions Plot. The American Statistician, 80, 157-163, <doi:10.1080/00031305.2025.2539235> (open access), and Montalcini, C., Rousseeuw, P.J. (2025). The bixplot: A variation on the boxplot suited for bimodal data, <doi:10.48550/arXiv.2510.09276> (open access). Examples can be found in the vignettes: "Discriminant_analysis_examples","K_nearest_neighbors_examples", "Support_vector_machine_examples", "Rpart_examples", "Random_forest_examples", "Neural_net_examples", "predsplot_examples", and "bixplot_examples".

Downloads

CRAN

501

Last 30 days

7487th

1.4K

Last 90 days

3.7K

Last year

Trend: -9.2% (30d vs prior 30d)

r2u CRAN

20

Last 30 days

49

Last 90 days

268

Last year

Trend: -28.6% (30d vs prior 30d)

CRAN Check Status

1 ERROR
12 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘Discriminant_analysis_examples.Rmd’ using rmarkdown

Quitting from Discriminant_analysis_examples.Rmd:387-399 [unnamed-chunk-35]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `load()`:
! cannot open the connection to 'https://wis.kuleuven.be/statdatascience/robust/data/mnist-rdata'
---
Backtrace:
    ▆
 1. └─base::load(mnist_url)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'Discriminant_analysis_examples.Rmd' failed with diagnostics:
cannot open the connection to 'https://wis.kuleuven.be/statdatascience/robust/data/mnist-rdata'
--- failed re-building ‘Discriminant_analysis_examples.Rmd’

--- re-building ‘K_nearest_neighbors_examples.Rmd’ using rmarkdown
--- finished re-building ‘K_nearest_neighbors_examples.Rmd’

--- re-building ‘Neural_net_examples.Rmd’ using rmarkdown
--- finished re-building ‘Neural_net_examples.Rmd’

--- re-building ‘Random_forest_examples.Rmd’ using rmarkdown
--- finished re-building ‘Random_forest_examples.Rmd’

--- re-building ‘Rpart_examples.Rmd’ using rmarkdown
--- finished re-building ‘Rpart_examples.Rmd’

--- re-building ‘Support_vector_machine_examples.Rmd’ using rmarkdown
--- finished re-building ‘Support_vector_machine_examples.Rmd’

--- re-building ‘bixplot_examples.Rmd’ using rmarkdown
--- finished re-building ‘bixplot_examples.Rmd’

--- re-building ‘predsplot_examples.Rmd’ using rmarkdown
--- finished re-building ‘predsplot_examples.Rmd’

SUMMARY: processing the following file failed:
  ‘Discriminant_analysis_examples.Rmd’

Error: Vignette re-building failed.
Execution halted

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 27, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘Discriminant_analysis_examples.Rmd’ using rmarkdown

Quitting from Discriminant_analysis_examples.Rmd:387-399 [unnamed-chunk-35]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...[truncated]...
’

--- re-building ‘predsplot_examples.Rmd’ using rmarkdown
--- finished re-building ‘predsplot_examples.Rmd’

SUMMARY: processing the following file failed:
  ‘Discriminant_analysis_examples.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

for code/documentation mismatches

Warning in file(open = "w+") :
  cannot open file '/tmp/Rtmp8Bi23k/Rf371fc87e733f8c': No space left on device
Error in file(open = "w+") : cannot open the connection
Calls: <Anonymous> -> .load_package_quietly -> .try_quietly -> file
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 8, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE May 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

PDF version of manual

LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'Discriminant_analysis_examples.Rmd' using rmarkdown

Quitting from Discriminant_analysis_examples.Rmd:387-399 [unnamed-chunk-35]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...[truncated]...
'

--- re-building 'predsplot_examples.Rmd' using rmarkdown
--- finished re-building 'predsplot_examples.Rmd'

SUMMARY: processing the following file failed:
  'Discriminant_analysis_examples.Rmd'

Error: Vignette re-building failed.
Execution halted

Dependency Network

Dependencies Reverse dependencies ggplot2 robustbase e1071 cellWise cluster kernlab gridExtra rpart randomForest scales lpSolve diptest classmap

Version History

10 tracked
updated 1.2.7 ← 1.2.6 diff Apr 29, 2026
new 1.2.6 Mar 10, 2026
updated 1.2.6 ← 1.2.5 diff Jul 13, 2025
updated 1.2.5 ← 1.2.4 diff Jun 17, 2025
updated 1.2.4 ← 1.2.3 diff May 13, 2025
updated 1.2.3 ← 1.2.0 diff Apr 22, 2023
updated 1.2.0 ← 1.1.1 diff Jan 8, 2022
updated 1.1.1 ← 1.1.0 diff Jul 24, 2021
updated 1.1.0 ← 1.0.0 diff Jun 26, 2021
new 1.0.0 May 9, 2021