Skip to content

Commit f468dad

Browse files
committed
resolve merge conflict
Merge branch 'main' into binned_breaks_labels_length # Conflicts: # R/guide-bins.R # tests/testthat/test-guides.R
2 parents b0ac46a + 1bb9230 commit f468dad

File tree

382 files changed

+42320
-10373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+42320
-10373
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
cache-version: 3
6464
extra-packages: >
6565
any::rcmdcheck,
66-
Hmisc=?ignore-before-r=4.1.0,
66+
Hmisc=?ignore-before-r=4.2.0,
6767
quantreg=?ignore-before-r=4.3.0
6868
needs: check
6969

DESCRIPTION

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ggplot2
2-
Version: 3.5.1.9000
32
Title: Create Elegant Data Visualisations Using the Grammar of Graphics
3+
Version: 3.5.1.9000
44
Authors@R: c(
55
person("Hadley", "Wickham", , "[email protected]", role = "aut",
66
comment = c(ORCID = "0000-0003-4757-117X")),
@@ -30,21 +30,21 @@ License: MIT + file LICENSE
3030
URL: https://ggplot2.tidyverse.org, https://github.com/tidyverse/ggplot2
3131
BugReports: https://github.com/tidyverse/ggplot2/issues
3232
Depends:
33-
R (>= 3.5)
33+
R (>= 4.0)
3434
Imports:
3535
cli,
3636
grDevices,
3737
grid,
3838
gtable (>= 0.1.1),
3939
isoband,
4040
lifecycle (> 1.0.1),
41-
MASS,
4241
rlang (>= 1.1.0),
4342
scales (>= 1.3.0),
4443
stats,
4544
vctrs (>= 0.6.0),
4645
withr (>= 2.5.0)
4746
Suggests:
47+
broom,
4848
covr,
4949
dplyr,
5050
ggplot2movies,
@@ -53,6 +53,7 @@ Suggests:
5353
knitr,
5454
mapproj,
5555
maps,
56+
MASS,
5657
mgcv,
5758
multcomp,
5859
munsell,
@@ -75,6 +76,7 @@ VignetteBuilder:
7576
knitr
7677
Config/Needs/website: ggtext, tidyr, forcats, tidyverse/tidytemplate
7778
Config/testthat/edition: 3
79+
Config/usethis/last-upkeep: 2024-10-24
7880
Encoding: UTF-8
7981
LazyData: true
8082
Roxygen: list(markdown = TRUE)
@@ -125,15 +127,15 @@ Collate:
125127
'facet-grid-.R'
126128
'facet-null.R'
127129
'facet-wrap.R'
128-
'fortify-lm.R'
129130
'fortify-map.R'
130-
'fortify-multcomp.R'
131+
'fortify-models.R'
131132
'fortify-spatial.R'
132133
'fortify.R'
133134
'stat-.R'
134135
'geom-abline.R'
135136
'geom-rect.R'
136137
'geom-bar.R'
138+
'geom-tile.R'
137139
'geom-bin2d.R'
138140
'geom-blank.R'
139141
'geom-boxplot.R'
@@ -150,7 +152,6 @@ Collate:
150152
'geom-density2d.R'
151153
'geom-dotplot.R'
152154
'geom-errorbar.R'
153-
'geom-errorbarh.R'
154155
'geom-freqpoly.R'
155156
'geom-function.R'
156157
'geom-hex.R'
@@ -167,7 +168,6 @@ Collate:
167168
'geom-smooth.R'
168169
'geom-spoke.R'
169170
'geom-text.R'
170-
'geom-tile.R'
171171
'geom-violin.R'
172172
'geom-vline.R'
173173
'ggplot2-package.R'
@@ -276,7 +276,6 @@ Collate:
276276
'utilities-break.R'
277277
'utilities-grid.R'
278278
'utilities-help.R'
279-
'utilities-matrix.R'
280279
'utilities-patterns.R'
281280
'utilities-resolution.R'
282281
'utilities-tidy-eval.R'

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2020 ggplot2 authors
3+
Copyright (c) 2024 ggplot2 core developer team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NAMESPACE

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ S3method(guide_train,default)
8484
S3method(guide_transform,default)
8585
S3method(heightDetails,titleGrob)
8686
S3method(heightDetails,zeroGrob)
87-
S3method(interleave,default)
88-
S3method(interleave,unit)
8987
S3method(limits,Date)
9088
S3method(limits,POSIXct)
9189
S3method(limits,POSIXlt)
@@ -126,8 +124,6 @@ S3method(scale_type,logical)
126124
S3method(scale_type,numeric)
127125
S3method(scale_type,ordered)
128126
S3method(scale_type,sfc)
129-
S3method(single_value,default)
130-
S3method(single_value,factor)
131127
S3method(summary,ggplot)
132128
S3method(vec_cast,character.mapped_discrete)
133129
S3method(vec_cast,double.mapped_discrete)
@@ -176,6 +172,7 @@ export(GeomAbline)
176172
export(GeomAnnotationMap)
177173
export(GeomArea)
178174
export(GeomBar)
175+
export(GeomBin2d)
179176
export(GeomBlank)
180177
export(GeomBoxplot)
181178
export(GeomCol)
@@ -344,6 +341,7 @@ export(draw_key_vpath)
344341
export(dup_axis)
345342
export(el_def)
346343
export(element_blank)
344+
export(element_geom)
347345
export(element_grob)
348346
export(element_line)
349347
export(element_rect)
@@ -367,6 +365,7 @@ export(find_panel)
367365
export(flip_data)
368366
export(flipped_names)
369367
export(fortify)
368+
export(from_theme)
370369
export(geom_abline)
371370
export(geom_area)
372371
export(geom_bar)
@@ -422,7 +421,9 @@ export(geom_violin)
422421
export(geom_vline)
423422
export(get_alt_text)
424423
export(get_element_tree)
424+
export(get_geom_defaults)
425425
export(get_guide_data)
426+
export(get_labs)
426427
export(get_last_plot)
427428
export(get_layer_data)
428429
export(get_layer_grob)
@@ -460,10 +461,22 @@ export(guide_transform)
460461
export(guides)
461462
export(has_flipped_aes)
462463
export(is.Coord)
464+
export(is.coord)
463465
export(is.facet)
466+
export(is.geom)
464467
export(is.ggplot)
465468
export(is.ggproto)
469+
export(is.guide)
470+
export(is.guides)
471+
export(is.layer)
472+
export(is.mapping)
473+
export(is.margin)
474+
export(is.position)
475+
export(is.scale)
476+
export(is.stat)
466477
export(is.theme)
478+
export(is.theme_element)
479+
export(is.waiver)
467480
export(label_both)
468481
export(label_bquote)
469482
export(label_context)
@@ -708,6 +721,7 @@ export(theme_minimal)
708721
export(theme_replace)
709722
export(theme_set)
710723
export(theme_test)
724+
export(theme_transparent)
711725
export(theme_update)
712726
export(theme_void)
713727
export(transform_position)

NEWS.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,53 @@
11
# ggplot2 (development version)
22

33
* Fixed bug in out-of-bounds binned breaks (@teunbrand, #6054)
4+
* Binned guides now accept expressions as labels (@teunbrand, #6005)
5+
* (internal) `Scale$get_labels()` format expressions as lists.
6+
* In non-orthogonal coordinate systems (`coord_sf()`, `coord_polar()` and
7+
`coord_radial()`), using 'AsIs' variables escape transformation when
8+
both `x` and `y` is an 'AsIs' variable (@teunbrand, #6205).
9+
* The following methods have been deprecated: `fortify.lm()`, `fortify.glht()`,
10+
`fortify.confint.glht()`, `fortify.summary.glht()` and `fortify.cld()`. It
11+
is recommend to use `broom::augment()` and `broom::tidy()` instead
12+
(@teunbrand, #3816).
13+
* Custom and raster annotation now respond to scale transformations, and can
14+
use AsIs variables for relative placement (@teunbrand based on
15+
@yutannihilation's prior work, #3120)
16+
* When discrete breaks have names, they'll be used as labels by default
17+
(@teunbrand, #6147).
18+
* The helper function `is.waiver()` is now exported to help extensions to work
19+
with `waiver()` objects (@arcresu, #6173).
20+
* Date(time) scales now throw appropriate errors when `date_breaks`,
21+
`date_minor_breaks` or `date_labels` are not strings (@RodDalBen, #5880)
22+
* `geom_errorbarh()` is deprecated in favour of
23+
`geom_errorbar(orientation = "y")` (@teunbrand, #5961).
24+
* `geom_contour()` should be able to recognise a rotated grid of points
25+
(@teunbrand, #4320)
26+
* `geom_boxplot()` gains additional arguments to style the colour, linetype and
27+
linewidths of the box, whiskers, median line and staples (@teunbrand, #5126)
28+
* (internal) Using `after_scale()` in the `Geom*$default_aes()` field is now
29+
evaluated in the context of data (@teunbrand, #6135)
30+
* Fixed bug where binned scales wouldn't simultaneously accept transformations
31+
and function-limits (@teunbrand, #6144).
32+
* Fixed bug where the `ggplot2::`-prefix did not work with `stage()`
33+
(@teunbrand, #6104).
34+
* New `get_labs()` function for retrieving completed plot labels
35+
(@teunbrand, #6008).
36+
* Built-in `theme_*()` functions now have `ink` and `paper` arguments to control
37+
foreground and background colours respectively (@teunbrand)
38+
* The `summary()` method for ggplots is now more terse about facets
39+
(@teunbrand, #5989).
40+
* `guide_bins()`, `guide_colourbar()` and `guide_coloursteps()` gain an `angle`
41+
argument to overrule theme settings, similar to `guide_axis(angle)`
42+
(@teunbrand, #4594).
43+
* `coord_*(expand)` can now take a logical vector to control expansion at any
44+
side of the panel (top, right, bottom, left) (@teunbrand, #6020)
45+
* (Breaking) The defaults for all geoms can be set at one in the theme.
46+
(@teunbrand based on pioneering work by @dpseidel, #2239)
47+
* A new `theme(geom)` argument is used to track these defaults.
48+
* The `element_geom()` function can be used to populate that argument.
49+
* The `from_theme()` function allows access to the theme default fields from
50+
inside the `aes()` function.
451
* Passing empty unmapped aesthetics to layers raises a warning instead of
552
throwing an error (@teunbrand, #6009).
653
* Moved {mgcv} from Imports to Suggests (@teunbrand, #5986)
@@ -17,7 +64,7 @@
1764
class through new `Coord$draw_panel()` method.
1865
* `theme(strip.clip)` now defaults to `"on"` and is independent of Coord
1966
clipping (@teunbrand, 5952).
20-
* (internal) rearranged the code of `Facet$draw_paensl()` method (@teunbrand).
67+
* (internal) rearranged the code of `Facet$draw_panels()` method (@teunbrand).
2168
* Axis labels are now justified across facet panels (@teunbrand, #5820)
2269
* Fixed bug in `stat_function()` so x-axis title now produced automatically
2370
when no data added. (@phispu, #5647).
@@ -163,6 +210,15 @@
163210
* `theme_classic()` now has black ticks and text instead of dark gray. In
164211
addition, `theme_classic()`'s axis line end is `"square"` (@teunbrand, #5978).
165212
* {tibble} is now suggested instead of imported (@teunbrand, #5986)
213+
* The ellipsis argument is now checked in `fortify()`, `get_alt_text()`,
214+
`labs()` and several guides (@teunbrand, #3196).
215+
* `stat_summary_bin()` no longer ignores `width` parameter (@teunbrand, #4647).
216+
* Added `keep.zeroes` argument to `stat_bin()` (@teunbrand, #3449)
217+
* `coord_sf()` no longer errors when dealing with empty graticules (@teunbrand, #6052)
218+
* Added `theme_transparent()` with transparent backgrounds (@topepo).
219+
* New theme elements `palette.{aes}.discrete` and `palette.{aes}.continuous`.
220+
Theme palettes replace palettes in scales where `palette = NULL`, which is
221+
the new default in many scales (@teunbrand, #4696).
166222

167223
# ggplot2 3.5.1
168224

@@ -209,6 +265,7 @@ documentation updates.
209265
* `annotate()` now warns about `stat` or `position` arguments (@teunbrand, #5151)
210266
* `guide_coloursteps(even.steps = FALSE)` now works with discrete data that has
211267
been formatted by `cut()` (@teunbrand, #3877).
268+
* `ggsave()` now offers to install svglite if needed (@eliocamp, #6166).
212269

213270
# ggplot2 3.5.0
214271

0 commit comments

Comments
 (0)