grantmcdermott / grantmcdermott/tinyplot
Non-density ridglines (e.g., smoothed time-series)
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 427
- Forks
- 25
- Avg merge
- 22h 54m
- Merged PRs (30d)
- 28
Description
Should we add an option to type_ridge() whereby, instead of enforcing a density calculation over x, we just take the smoothed y values across the raw values of x?
A canonical use case would be plotting time series. (This is actually the case that came up for me at work today, hence motivating the issue here.) SO ggrides example along these lines: https://stackoverflow.com/questions/63265979/ggridges-with-time-series-r
If implemented, we'd need to decide what smoothing function to use. While ksmooth seems a natural choice, I worry that (a) it produces too much variability and (b) it only supports a subset of the kernels that density does (so we'd need some internal logic to head off argument mismatches). Maybe we roll our own simple kernel smoother?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the type_ridge() implementation and review how density handles x values and smoothing arguments. Compare the proposed time-series use case with the linked ggridges example, then assess ksmooth and the density kernel options before defining what the new option and its completed behavior should be.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100