ggplot2
ggplot2 copied to clipboard
An implementation of the Grammar of Graphics in R
In #5855, we internally removed `as.table` and resolved it in the constructor. Reverse dependency checks revealed that several facet extensions rely on `as.table` to be present. It would be nice...
In #5867, we introduced `ggpar()` to ggplot2. It helps translating ggplot2 settings, which are often in mm (historical errors aside) to {grid} settings. `ggpubr::ggpar()` does something else entirely. From my...
This PR aims to fix #3738 and replaces #5824. Briefly, an example is included to use the `rescaler` argument to center a custom divergent scale. The example rendered: ``` r...
Default labs are not created based on aesthetics in the geom when the aesthetic is in both the ggplot and geom_* call ``` r library(tidyverse) library(palmerpenguins) penguins |> ggplot(aes(x =...
I have encountered an issue with the current version of ggplot2 (3.5.1) when integrating with the plotly package via the ggplotly function. The provided code should generate a Plotly plot...
It would be super great if `ggsave()` could save multiple plots to the same pdf (on different pages). I think ideally, the plot argument would be able to be passed...
The current implementation of `CoordSf` has the crs transformation implemented in the `setup_data()` method. This is, in my view the wrong place to have it and a departure from the...
Geom_density, geom_barplot, geom_histogram and geom_barplot all support aes weight. Stat_ellipse() doesnt support. I figured out that data[rep(data$rownumber,data$weight),] is a workaround, but that doesnt work too well(or at all) when weights...
Here is an attempt at fixing #4269. The PR creates a new `scales_params` object type that can be added to ggplot2 objects to collect parameter values that will be added...
I have two ideas for making themes slightly easier to use. ### Element shortcuts Often, you simply want to switch a theme element on or off. For example if you...