Skip to content

Make tinytheme() play nicer with ridge and spineplot types#298

Merged
grantmcdermott merged 5 commits intomainfrom
theme_ridges
Feb 3, 2025
Merged

Make tinytheme() play nicer with ridge and spineplot types#298
grantmcdermott merged 5 commits intomainfrom
theme_ridges

Conversation

@grantmcdermott
Copy link
Owner

Fixes #297

(At least, mostly fixed. There's one outstanding issue with overlapping facet y labels for themes where frame.plot is turned off like "clean2". But I can't see a way to address that under the current logic, since we can't pass this information from where it is calculated here to where type_ridge() actually draws the axis labels here.)

See updated tests for some examples.

P.S. I thought about implementing a dedicated tinytheme("ridge") theme, but decided against it for now. If implemented, we probably want solid grid lines (only on the y axis?) and potentially bump the (horizontal) axis labels up by passing padj = 0 to tinyAxis here.

@grantmcdermott grantmcdermott changed the title Make Make tinytheme() play nicer with ridge and spineplot types Feb 3, 2025
@grantmcdermott grantmcdermott merged commit 1dbe740 into main Feb 3, 2025
3 checks passed
@grantmcdermott grantmcdermott deleted the theme_ridges branch February 3, 2025 06:06
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.

Themes do not play nicely with some complex plot types, particularly "spineplot" and "ridge".

1 participant