Skip to content

Ridgeline plot#242

Merged
teunbrand merged 13 commits intoposit-dev:mainfrom
teunbrand:ridgeline
Apr 8, 2026
Merged

Ridgeline plot#242
teunbrand merged 13 commits intoposit-dev:mainfrom
teunbrand:ridgeline

Conversation

@teunbrand
Copy link
Copy Markdown
Collaborator

This PR advances #139.

Apparently this was much easier than I imagined at first.
Simply messing with the mirroring creates ridgeline plots and one can use width to control the degree of overlap between ridges.

@teunbrand teunbrand marked this pull request as ready for review March 19, 2026 12:30
@thomasp85
Copy link
Copy Markdown
Collaborator

I'm not fond of the name of the ridge parameter. It would be nice if we could find a parameter that can be reused for box plot and jittering...

Earlier we discussed align which I agree is not perfect, but ridge is definitely not superior

Comment thread doc/syntax/layer/type/violin.qmd Outdated
Comment on lines +39 to +40
* `'left'` or `'top'` only displays half a violin at the left side or top side.
* `'right'` or `'bottom'` only displays half a violin at the right side or bottom side.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't left and 'bottom' be synonyms? those are the two that pointing towards the low end of the scale...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The vegalite calculations just worked out this way, but I kinda agree that such consistency would be nice.

Copy link
Copy Markdown
Collaborator

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teunbrand teunbrand merged commit d48dd1e into posit-dev:main Apr 8, 2026
15 checks passed
@teunbrand teunbrand deleted the ridgeline branch April 8, 2026 13:08
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.

2 participants