David Hodge

Results 51 comments of David Hodge

This would be particularly useful when facetting

``` diamonds |> ggplot() + geom_histogram(aes(x = carat, y = after_stat(density)), col = pal_viridis_mix(1), fill = pal_viridis_mix(1), alpha = 0.9) + gg_theme(grid_h = TRUE) + scale_y_continuous(expand = expansion(mult = c(0,...

Difficult, as no `scale_colour_gradientn_date`, `scale_colour_gradientn_datetime` or `scale_colour_gradientn_time`

Related to this, could there be a way to easily reset _all_ geom defaults back to originals? Maybe when the geom argument is NULL? `update_geom_updates(geom = NULL, update = NULL)`...

``` text_size = 11, text_family = "", text_face = "plain", text_colour = lightness[1], title_size = ggplot2::rel(1.1), title_family = text_family, title_face = text_face, title_colour = text_colour, subtitle_size = ggplot2::rel(1), subtitle_family =...

You'd have to call elements plot_title_* etc, as there is a title argument in theme. So better not to do this. Undid it

In general with a numeric colour scale, a NA value does not show up in the legend - and ideally should if it is plotted ``` r library(palmerpenguins) library(tidyverse) penguins...

Thanks @teunbrand. It'd be great to be able to do this with oob's other than oob_discard. Could the labelling function be applied to breaks _after_ the out-of-bounds breaks are censored?