davidhodge931 / ggblanket

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

colour scales being weird #922

Closed davidhodge931 closed 1 month ago

davidhodge931 commented 1 month ago
library(tidyverse)
library(palmerpenguins)
library(ggblanket)

set_blanket()

p1 <- diamonds |>
  gg_bin_2d(
    x = carat,
    y = price,
    # y_symmetric = FALSE, #make the limits the min/max
    # y_expand_limits = 20000,
    # y_expand = c(0, 0),
  )

p2 <- diamonds |>
  gg_bin_2d(
    x = carat,
    y = price,
    y_symmetric = FALSE, #make the limits the min/max
    y_expand_limits = 20000,
    y_expand = c(0, 0),
  )

library(patchwork)
p1 + p2

Created on 2024-06-23 with reprex v2.1.0

davidhodge931 commented 1 month ago

Sorted :)