ggplot2
ggplot2 copied to clipboard
An implementation of the Grammar of Graphics in R
This PR aims to fix #3860. Briefly, it makes a `Stat$use_defaults()` method that evaluates `Stat$default_aes` prior to `Stat$setup_data()`. This is convenient for filling in optional aesthetics, like `weight`.
This PR aims to fix #5338. Briefly, the layout object gets a new method that sets the panel sizes. The gist is that you can give a vector of units...
This PR aims to fix #5178. Briefly, it adds `labs(dict)` that allows one to use a data-dictionary to label a plot based on variable names (rather than aesthetics). Let's just...
(Apologies if this has been raised and addressed before) Despite all the marvels of ggplot2 and the many amazing extension packages, one thing that continues to consume a lot of...
This is a very niche and selfish problem as I'm trying some stuff out in {gguidance}. It somewhat relates to #6076 a bit, but I'd like the following code: ```...
I added `limits = c(1, 2, 3)` to a scale_* and I didn't realize it (I though I used `breaks`). But was surprised by the resulting plot: it only uses...
This issue came up in https://github.com/tidyverse/ggplot2/pull/6084#discussion_r1746598566. Briefly, now that we can do `theme(geom = element_geom(...))`, there is much less need for `update_geom_defaults()`. Per https://github.com/tidyverse/ggplot2/pull/6084#discussion_r1746650639, we should ask ourselves if `update_geom_defaults()`...
This PR explores #3898. Briefly, it un-hardcodes the x/y position aesthetics to allow for other aesthetics. For now, consider this PR a probe into feasibility, rather a fully fledged fix....
In situations when we want to remove margins, we must set both ticks and ticks length to remove the width/heigth of axis in the underlying gtable. As user would expect...
This PR aims to fix #5927. It does so by no longer advising to use a pointless theme wrapper.