Skip to content

Handling of label outlines differs with ggplot2 version #72

@alice-hannah

Description

@alice-hannah

This impacts the first example in Annotations section of the cookbook.

When using annotate(geom = "label", ...), label outlines are removed by setting label.size = NA (passed to geom_label). In ggplot2 4.0.0, this argument has been replaced by linewidth. Now to remove label outlines, you need to set linewidth = 0.

The code doesn't break when updated, but just produces a warning to highlight that label.size isn't a valid argument. And the labels are outlined in the resulting plot. The reverse is true when using linewidth with an older version of ggplot2.

Action: update cookbook example to use linewidth when organisation has moved to ggplot 4.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions