Closed as not planned
Description
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
Labels
No labels