Skip to content

New warning missing values or values outside the scale range with geom_area(position = position_fill()) #6338

Closed
@jbengler

Description

@jbengler

Dear @teunbrand

I am struggling to wrap my head around this new warning message that occurs with ggplot2 v3.5.1.9000 but not v3.5.1.

This might be connected to #6211 and #6269, which report the same warning message but in different contexts.

Best
Jan

mtcars |>
  ggplot(aes(x = am, y = gear, fill = cyl, group = cyl)) +
  geom_area()

# works

mtcars |>
  ggplot(aes(x = am, y = gear, fill = cyl, group = cyl)) +
  geom_area(position = position_fill())

# Warning message:
# Removed 6 rows containing missing values or values outside the scale range (`geom_area()`).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorpositions 🥇

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions