teunbrand / ggh4x

ggplot extension: options for tailored facets, multiple colourscales and miscellaneous
https://teunbrand.github.io/ggh4x/
Other
534 stars 32 forks source link

Suggestion: `scale_{x/y}_facet()` #76

Closed teunbrand closed 1 year ago

teunbrand commented 1 year ago

Now, we can use facetted_pos_scale() in the following way:

+ facetted_pos_scale(
  x = list(COL == 1 ~ scale_x_continuous(...)),
  y = list(ROW == 2 ~ scale_y_continuous(...))
)

However, it would be more convenient if instead we could just do:

+ scale_x_facet(COL == 1, ..., type = "continuous") # continuous would be default
+ scale_y_facet(ROW == 1, ..., type = "continuous")