Add survival curves, distribution fitting, and layer opacity#34
Merged
mortonanalytics merged 1 commit intodevelopfrom Mar 29, 2026
Merged
Add survival curves, distribution fitting, and layer opacity#34mortonanalytics merged 1 commit intodevelopfrom
mortonanalytics merged 1 commit intodevelopfrom
Conversation
… Session 1) Three new features completing the statistical visualization story: - Kaplan-Meier survival curves: transform_survfit computes KM estimator + Greenwood CI using base R only. composite_survfit expands to step-curve line + CI band + censored markers. Group stratification supported. - Distribution fitting: transform_fit_distribution fits normal/lognormal/ exponential via MLE. composite_histogram_fit overlays fitted density on histogram. - Layer opacity: setLayerOpacity(label, opacity) for per-layer transparency. Applied in Chart.js routeLayers(). Tests: 23 survfit + 7 histogram_fit + 6 opacity = 36 new R tests Total: 770 R tests, 194 JS tests, all passing. Co-Authored-By: Claude Opus 4.6 (1M context) <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
Phase 4 Session 1 — completing the statistical visualization story:
transform_survfitcomputes KM estimator + Greenwood CI using base R only.composite_survfitexpands to step-curve line + CI band + censored markers. Group stratification viagroupmappingtransform_fit_distributionfits normal/lognormal/exponential via MLE.composite_histogram_fitrenders histogram + fitted density curve + parameter annotationsetLayerOpacity(label, opacity)for per-layer transparency, applied renderer-agnostically inrouteLayers()Test plan
🤖 Generated with Claude Code