Closed trevorld closed 1 year ago
geom_sf_pattern()
and geom_boxplot_pattern()
are only two geoms of ours that uses size
aesthetic to adjust size of points.
library(ggpattern)
ns <- asNamespace("ggpattern")
geoms_names <- ls(ns, pattern = "Geom.*")
geoms <- lapply(geoms_names, \(x) get(x, ns))
idx <- vapply(geoms, \(x) {
all(c("linewidth", "size") %in% x$aesthetics())
}, logical(1L))
geoms_names[idx]
[1] "GeomBoxplotPattern" "GeomSfPattern"
All {ggpattern}
Geoms now have rename_size = TRUE
:
```r
idx <- vapply(geoms, \(x) {
x$rename_size }
, logical(1))
geoms_names[idx] # same as `geoms_names`
[1] "GeomAreaPattern" "GeomBarPattern" "GeomBoxplotPattern"
[4] "GeomColPattern" "GeomCrossbarPattern" "GeomDensityPattern"
[7] "GeomMapPattern" "GeomPolygonPattern" "GeomRectPattern"
[10] "GeomRibbonPattern" "GeomSfPattern" "GeomTilePattern"
[13] "GeomViolinPattern"
{ggplot2}
v3.4.0 has finally hit CRAN
{ggplot2}
alinewidth
aesthetic has been introduced and supersedes thesize
aesthetic for scaling the width of patterned area border lines (#82).size
will remain functioning but deprecated for these geoms and it is recommended to update all code to reflect the new aesthetic. Continue to use thesize
aesthetic to adjust the size of any points ingeom_sf_pattern()
(and any other geoms which also have points).closes #82