davidhodge931 / ggblanket

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

*_breaks` & `y_limits`: where both set, breaks does not work #902

Closed davidhodge931 closed 1 month ago

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

set_blanket()

penguins |>
    gg_point(
        x = sex,
        y = bill_depth_mm,
        y_limits = c(12, 22),
        y_breaks = seq(13, 21, 3),
    )

penguins |>
    gg_point(
        x = bill_depth_mm,
        y = sex,
        x_limits = c(12, 22),
        x_breaks = seq(13, 21, 3),
    )