davidhodge931 / ggblanket

Simplify ggplot2 visualisation
https://davidhodge931.github.io/ggblanket/
Other
150 stars 8 forks source link

Bug: in colouring with when `col_palette_d` was set with names not in the data #896

Closed davidhodge931 closed 3 months ago

davidhodge931 commented 3 months ago
library(ggplot2)
library(dplyr)
library(palmerpenguins)
devtools::load_all()

set_blanket(
  col_palette_d = c("blah" = "green", "Adelie" = "red", "Chinstrap" = "blue", "Gentoo" = "orange"),
)

penguins |>
  gg_point(
    x = flipper_length_mm,
    y = island,
    col = species,
  )
davidhodge931 commented 3 months ago

rlang::is_named too strict