David Hodge

Results 50 comments of David Hodge

Any eta about when you guys are planning on releasing v3.4.0 of ggplot2? Just thinking about how supporting the linewidth thing is going to happen in my extension package

A workaround... ``` library(dplyr) library(ggplot2) df % #if colouring summarise(all_na = all(is.na(data_value))) %>% filter(all_na == TRUE) %>% pull(region) df % mutate(region = forcats::fct_reorder(region, data_value, .fun = median, na.rm = TRUE))...

That cramps things too close to the axis line and ticks, and forces someone to choose a vjust that is different to what they might have wanted. I.e. they might...

Sometimes you get situations like this... This function would be much improved if all days were able to line-up, all months able to line -up, and all years able to...

A way to do this would be to construct breaks so that empty lines are given "", such that all labels have the number of lines of the label with...

``` ggplot(faithful, aes(x = eruptions, y = waiting)) + geom_density2d(aes(col = after_stat(level)), bins = 25) + gg_theme(grid_h = T) + scale_color_gradientn(colours = viridis::viridis(9)) + geom_point() ggplot(faithfuld, aes(waiting, eruptions, z =...

https://github.com/tidyverse/ggplot2/issues/4973

Would be good to support, but the theme stuff is difficult

``` penguins |> tidyr::drop_na() |> mutate(sex = str_to_sentence(sex)) |> gg_point( x = flipper_length_mm, y = body_mass_g, col = island, x_breaks = scales::breaks_pretty(3), y_breaks = scales::breaks_width(1500) ) + facet_grid(cols = vars(species),...