Skip to content

use relative fontsize for model size numbers - #556

Merged
aloctavodia merged 2 commits into
masterfrom
fix-plotvsel-modelsize-fontsize
Jan 23, 2026
Merged

use relative fontsize for model size numbers#556
aloctavodia merged 2 commits into
masterfrom
fix-plotvsel-modelsize-fontsize

Conversation

@avehtari

Copy link
Copy Markdown
Member

Fixes #555

This would add requirement that ggplot2 version needs to be at least 4.*

@avehtari
avehtari requested a review from jgabry January 19, 2026 19:54
@avehtari

Copy link
Copy Markdown
Member Author

@jgabry I'm asking your opinion on this PR. See also the issue for more explanation

@jgabry

jgabry commented Jan 20, 2026

Copy link
Copy Markdown
Member

I think 0.7 * base_size is a reasonable choice

@avehtari
avehtari requested a review from aloctavodia January 21, 2026 12:41
@aloctavodia

Copy link
Copy Markdown
Collaborator

Should we make this change conditional on ggplot version so we don't require ggplot2 >= 4?

Comment thread R/methods.R Outdated
@jgabry

jgabry commented Jan 23, 2026

Copy link
Copy Markdown
Member

I also use version checking with ggplot2 in bayesplot. We currently only require at least v3.4 so for some things we now check if the user has v4.0

@aloctavodia
aloctavodia merged commit 6e0682d into master Jan 23, 2026
5 checks passed
@aloctavodia
aloctavodia deleted the fix-plotvsel-modelsize-fontsize branch January 23, 2026 06:18
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.

ggplot2 4.x changes the plot.vsel model size font size

3 participants