add parview: interactive parallel coordinates view via parallelPlot#2
Merged
Conversation
New parview() S3 generic with methods for function, matrix, km, Kriging, WarpKriging, glm, and DiceEval list models. Uses parallelPlot::parallelPlot() (htmlwidget) to display all input dimensions and the output simultaneously, with lines colored by output value. Model methods sample an LHS prediction grid and overlay observed design points; Kriging-based methods add y_low/y_up axes for the predictive confidence interval. Also regenerates man pages via roxygen2 8.0.0 (dedup fixes in contourview/filledcontourview/sectionview* Rd files; safe_mclapply now exported). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add engine parameter ('parallelPlot' default, 'base' for static output)
with parview_base() renderer using base R graphics — no extra dependency
- Add col_fun parameter (default 'blue') with same color policy as
contourview/sectionview: col.levels() saturation ramp for base engine,
col_fun_to_continuousCS() mapping to D3 single-hue scale for parallelPlot
- Add col_points parameter (default 'red') to all methods, with col shortcut
- Factor shared rendering into parview_render() dispatcher
- obs rows in base engine drawn on top, thicker; y_low/y_up collapse to y_doe
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
These were picked up by roxygen2 from uncommitted R/Utils.R changes and don't belong in this branch — safe_mclapply is not defined in the committed code, causing package install to fail in CI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add @param col_fun and @param col to parview.function roxygen block so parview.Rd no longer has undocumented-arguments warnings - Delete man/safe_mclapply.Rd (generated from uncommitted R/Utils.R, referenced a function not present in committed code) - Restore man/Apply.function.Rd, man/Vectorize.function.Rd, man/roots.Rd to their master state (roxygenise had replaced parallel::mclapply references with safe_mclapply, causing codoc mismatches) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
parview(), a new S3 generic providing an interactive parallel coordinates view of prediction models and functions, usingparallelPlot(htmlwidget backed by d3.js)function,matrix,km,Kriging,WarpKriging,glm,list(DiceEval) — matching the coverage ofsectionviewy_low/y_upaxes for the predictive confidence interval; model methods overlay a LHS prediction grid with the observed design pointsparallelPlotadded toSuggestsin DESCRIPTION\seealsoentries in existing Rd files)Test plan
parview(branin, Xlim = rbind(c(0,0), c(1,1)))renders an htmlwidget in RStudio Viewerparview(X, y)for a matrix design shows colored parallel linesparview(km_model)shows LHS predictions + design points with CI axesparview(Kriging_model)same for rlibkriging >= 1.0R CMD checkpasses withparallelPlotin Suggests🤖 Generated with Claude Code