davidhodge931 / ggblanket

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

*_limits: consider removing from x/y #901

Closed davidhodge931 closed 1 month ago

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

set_blanket()

diamonds |>
    gg_bin_2d(
        x = carat,
        y = price,
        y_limits = c(0, 20000),
    )

diamonds |>
    gg_bin_2d(
        x = carat,
        y = price,
        y_breaks = c(seq(0, 20000, 2750), 20000),
    )
davidhodge931 commented 1 month ago

Could even remove *_oob too

davidhodge931 commented 1 month ago

You'd prob need to remove _oob, and _expand as well..

Can't be bothered..