davidhodge931 / ggblanket

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

col_palette_o: ordinal colour palettes fail when many colours required #942

Open davidhodge931 opened 3 weeks ago

davidhodge931 commented 3 weeks ago

Can use ggplot2 instead in these edge-case situations...

faithfuld |>
  gg_contour_filled(
    x = waiting,
    y = eruptions,
    z = density,
    bins = 14,
  )

faithful |>
  gg_density_2d_filled(
    x = waiting,
    y = eruptions,
    bins = 15,
    contour = TRUE,
  )

faithful |>
  ggplot() +
  geom_density_2d_filled(
    aes(x = waiting,
    y = eruptions),
    bins = 15,
    contour = TRUE,
  )