Skip to content

geom_violin(): draw_quantiles deprecation message is incomplete and has a typo #6757

@twest822

Description

@twest822

Repex for this is actually in the docs, which include an example of the deprecation warning.

geom_violin(..., draw_quantiles = c(0.25, 0.5, 0.75))
Warning message:
The `draw_quantiles` argument of `geom_violin()` is deprecated as of ggplot2 4.0.0.Please use the `quantiles.linetype` argument instead.

Looks like the warning should probably read

Please use the `quantiles` argument with the `quantile.linetype` argument instead.

for clarity as the replacing syntax is apparently

geom_violin(..., quantiles = c(0.25, 0.5, 0.75), quantile.linetype = "solid")

and there is no quantiles.linetype argument.

Some confusion over needing to move quantile.linetype off its default as well as rename draw_quantiles to quantiles seems likely, so likely it'd be good to update the docs to show an example of the new syntax in addition to draw_quantiles' deprecation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue ❤️good issue for first-time contributorsmessagesrequests for improvements to error, warning, or feedback messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions