Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Feb 3, 2025

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