Skip to content

add parview: interactive parallel coordinates view via parallelPlot#2

Merged
yannrichet-asnr merged 5 commits into
masterfrom
feature/parview
Jun 17, 2026
Merged

add parview: interactive parallel coordinates view via parallelPlot#2
yannrichet-asnr merged 5 commits into
masterfrom
feature/parview

Conversation

@yannrichet-asnr

Copy link
Copy Markdown
Member

Summary

  • Adds parview(), a new S3 generic providing an interactive parallel coordinates view of prediction models and functions, using parallelPlot (htmlwidget backed by d3.js)
  • Methods implemented: function, matrix, km, Kriging, WarpKriging, glm, list (DiceEval) — matching the coverage of sectionview
  • Lines are colored by output value; Kriging-based methods add y_low/y_up axes for the predictive confidence interval; model methods overlay a LHS prediction grid with the observed design points
  • parallelPlot added to Suggests in DESCRIPTION
  • Man page generated via roxygen2 8.0.0 (also fixes duplicate \seealso entries in existing Rd files)

Test plan

  • parview(branin, Xlim = rbind(c(0,0), c(1,1))) renders an htmlwidget in RStudio Viewer
  • parview(X, y) for a matrix design shows colored parallel lines
  • parview(km_model) shows LHS predictions + design points with CI axes
  • parview(Kriging_model) same for rlibkriging >= 1.0
  • R CMD check passes with parallelPlot in Suggests

🤖 Generated with Claude Code

yannrichet-asnr and others added 5 commits June 17, 2026 13:20
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>
@yannrichet-asnr yannrichet-asnr merged commit 41ea27a into master Jun 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant