Skip to content

ggpattern doesn't seem to work with latest DEV version #5608

Closed as not planned
@davidhodge931

Description

@davidhodge931
library(palmerpenguins)
library(tidyverse)
library(ggpattern)

penguins |>
  group_by(species, sex) |>
  summarise(across(body_mass_g, \(x) mean(x))) |>
  ggplot(    mapping = aes(y = species,
                           x = body_mass_g,
                           fill = sex, 
                           pattern = sex)) +
  geom_col_pattern()
#> `summarise()` has grouped output by 'species'. You can override using the
#> `.groups` argument.
#> Warning: The `scale_name` argument of `discrete_scale()` is deprecated as of ggplot2
#> 3.5.0.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_col_pattern()`).
#> Error in if (pat == "regular_polygon" && is.numeric(params$pattern_shape)) params$pattern_shape <- "convex6": missing value where TRUE/FALSE needed

Created on 2023-12-22 with reprex v2.0.2

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