Skip to content

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #6641.

In addition to improving the docs around quantiles, it also interprests logical linetype values as numeric.
From this follows that linetype = TRUE becomes solid and linetype = FALSE becomes blank.
It is convenient if you want a logical switch for linetypes, like so:

devtools::load_all("~/packages/ggplot2/")
#> ℹ Loading ggplot2

ggplot(mpg, aes(drv, displ)) +
  geom_violin(quantile.linetype = TRUE)

Created on 2025-09-26 with reprex v2.1.1

@teunbrand teunbrand added this to the ggplot2 4.0.1 milestone Oct 7, 2025
Copy link
Member

@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 c358000 into tidyverse:main Oct 20, 2025
11 checks passed
@teunbrand teunbrand deleted the fix_6641 branch October 20, 2025 11:38
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.

draw_quantiles param deprecated from geom_violin() with no replacement?

2 participants