Skip to content

spec: add density-rug specification#3506

Merged
github-actions[bot] merged 1 commit intomainfrom
specification/density-rug
Jan 9, 2026
Merged

spec: add density-rug specification#3506
github-actions[bot] merged 1 commit intomainfrom
specification/density-rug

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jan 9, 2026

New Specification: density-rug

Related to #3505


specification.md

density-rug: Density Plot with Rug Marks

Description

A kernel density estimation (KDE) plot combined with rug marks along the x-axis, showing both the smoothed probability distribution and the exact location of each individual data point. This combination provides the best of both worlds: the KDE reveals the overall shape, modality, and smoothed density of the distribution, while the rug marks preserve transparency about where actual observations fall, highlighting data density and potential gaps.

Applications

  • Exploratory data analysis where understanding both distribution shape and raw data placement matters
  • Comparing sample distributions while maintaining visibility of actual observation counts and clustering
  • Quality control analysis to identify process variations alongside individual measurement locations
  • Academic and research presentations requiring both statistical summaries and data transparency

Data

  • values (numeric) - The continuous variable to visualize
  • Size: 30-500 observations recommended (rug marks become cluttered with very large samples)
  • Example: Response times, measurement errors, test scores, or any continuous variable

Notes

  • Display the KDE curve with fill for visual weight and the rug marks as small tick marks along the x-axis
  • Use semi-transparent fill under the density curve to avoid obscuring the rug
  • Rug marks should be subtle but visible, with slight transparency for overlapping points
  • Consider jittering rug marks vertically if using thick ticks to reduce overplotting

Next: Add approved label to the issue to merge this PR.


🤖 spec-create workflow

@github-actions github-actions Bot merged commit 67a4373 into main Jan 9, 2026
4 checks passed
@github-actions github-actions Bot deleted the specification/density-rug branch January 9, 2026 15:26
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.

0 participants