knitr::opts_chunk$set( collapse = TRUE, comment = "#>", message = FALSE, warning = FALSE )
library(quollr) library(dplyr) library(ggplot2) library(patchwork) set.seed(20240110)
This illustrates how to compare multiple NLDR layouts and select the most appropriate one. The evaluation is typically based on Residual Mean Squared Error (RMSE), allowing you to assess the quality of different binning configurations or modeling strategies.
We begin by specifying a layout design for arranging the plots. The design defines the arrangement of 2-D NLDR layouts.
design <- gen_design(n_right = 4, ncol_right = 2)
To visually compare multiple 2-D NLDR layouts, we use the plot_rmse_layouts()
function. This function plots RMSE values against different bin width configurations along with 2-D NLDR layouts, making it easier to identify the best-performing model visually.
plot_rmse_layouts(plots = scurve_plts, design = design)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.