Skip to content

Commit 9b106c5

Browse files
committed
Merge branch 'main' into laurabrianna-date-error-msg
2 parents e5c9c00 + 926f290 commit 9b106c5

File tree

410 files changed

+42294
-10411
lines changed

Some content is hidden

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

410 files changed

+42294
-10411
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: 5 additions & 6 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,7 +30,7 @@ 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,
@@ -39,11 +39,9 @@ Imports:
3939
isoband,
4040
lifecycle (> 1.0.1),
4141
MASS,
42-
mgcv,
4342
rlang (>= 1.1.0),
4443
scales (>= 1.3.0),
4544
stats,
46-
tibble,
4745
vctrs (>= 0.6.0),
4846
withr (>= 2.5.0)
4947
Suggests:
@@ -55,6 +53,7 @@ Suggests:
5553
knitr,
5654
mapproj,
5755
maps,
56+
mgcv,
5857
multcomp,
5958
munsell,
6059
nlme,
@@ -67,6 +66,7 @@ Suggests:
6766
sf (>= 0.7-3),
6867
svglite (>= 2.1.2),
6968
testthat (>= 3.1.5),
69+
tibble,
7070
vdiffr (>= 1.0.6),
7171
xml2
7272
Enhances:
@@ -75,6 +75,7 @@ VignetteBuilder:
7575
knitr
7676
Config/Needs/website: ggtext, tidyr, forcats, tidyverse/tidytemplate
7777
Config/testthat/edition: 3
78+
Config/usethis/last-upkeep: 2024-10-24
7879
Encoding: UTF-8
7980
LazyData: true
8081
Roxygen: list(markdown = TRUE)
@@ -150,7 +151,6 @@ Collate:
150151
'geom-density2d.R'
151152
'geom-dotplot.R'
152153
'geom-errorbar.R'
153-
'geom-errorbarh.R'
154154
'geom-freqpoly.R'
155155
'geom-function.R'
156156
'geom-hex.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: 17 additions & 5 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)
@@ -344,6 +340,7 @@ export(draw_key_vpath)
344340
export(dup_axis)
345341
export(el_def)
346342
export(element_blank)
343+
export(element_geom)
347344
export(element_grob)
348345
export(element_line)
349346
export(element_rect)
@@ -367,6 +364,7 @@ export(find_panel)
367364
export(flip_data)
368365
export(flipped_names)
369366
export(fortify)
367+
export(from_theme)
370368
export(geom_abline)
371369
export(geom_area)
372370
export(geom_bar)
@@ -422,7 +420,9 @@ export(geom_violin)
422420
export(geom_vline)
423421
export(get_alt_text)
424422
export(get_element_tree)
423+
export(get_geom_defaults)
425424
export(get_guide_data)
425+
export(get_labs)
426426
export(get_last_plot)
427427
export(get_layer_data)
428428
export(get_layer_grob)
@@ -460,10 +460,21 @@ export(guide_transform)
460460
export(guides)
461461
export(has_flipped_aes)
462462
export(is.Coord)
463+
export(is.coord)
463464
export(is.facet)
465+
export(is.geom)
464466
export(is.ggplot)
465467
export(is.ggproto)
468+
export(is.guide)
469+
export(is.guides)
470+
export(is.layer)
471+
export(is.mapping)
472+
export(is.margin)
473+
export(is.position)
474+
export(is.scale)
475+
export(is.stat)
466476
export(is.theme)
477+
export(is.theme_element)
467478
export(label_both)
468479
export(label_bquote)
469480
export(label_context)
@@ -513,6 +524,8 @@ export(remove_missing)
513524
export(render_axes)
514525
export(render_strips)
515526
export(replace_theme)
527+
export(reset_geom_defaults)
528+
export(reset_stat_defaults)
516529
export(reset_theme_settings)
517530
export(resolution)
518531
export(scale_alpha)
@@ -733,7 +746,6 @@ importFrom(grid,unit)
733746
importFrom(lifecycle,deprecated)
734747
importFrom(scales,alpha)
735748
importFrom(stats,setNames)
736-
importFrom(tibble,tibble)
737749
importFrom(utils,.DollarNames)
738750
importFrom(utils,head)
739751
importFrom(utils,tail)

NEWS.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# ggplot2 (development version)
22

3+
* `geom_contour()` should be able to recognise a rotated grid of points
4+
(@teunbrand, #4320)
5+
* `geom_boxplot()` gains additional arguments to style the colour, linetype and
6+
linewidths of the box, whiskers, median line and staples (@teunbrand, #5126)
7+
* (internal) Using `after_scale()` in the `Geom*$default_aes()` field is now
8+
evaluated in the context of data (@teunbrand, #6135)
9+
* Fixed bug where binned scales wouldn't simultaneously accept transformations
10+
and function-limits (@teunbrand, #6144).
11+
* Fixed bug where the `ggplot2::`-prefix did not work with `stage()`
12+
(@teunbrand, #6104).
13+
* New `get_labs()` function for retrieving completed plot labels
14+
(@teunbrand, #6008).
15+
* Built-in `theme_*()` functions now have `ink` and `paper` arguments to control
16+
foreground and background colours respectively (@teunbrand)
17+
* The `summary()` method for ggplots is now more terse about facets
18+
(@teunbrand, #5989).
19+
* `guide_bins()`, `guide_colourbar()` and `guide_coloursteps()` gain an `angle`
20+
argument to overrule theme settings, similar to `guide_axis(angle)`
21+
(@teunbrand, #4594).
22+
* `coord_*(expand)` can now take a logical vector to control expansion at any
23+
side of the panel (top, right, bottom, left) (@teunbrand, #6020)
24+
* (Breaking) The defaults for all geoms can be set at one in the theme.
25+
(@teunbrand based on pioneering work by @dpseidel, #2239)
26+
* A new `theme(geom)` argument is used to track these defaults.
27+
* The `element_geom()` function can be used to populate that argument.
28+
* The `from_theme()` function allows access to the theme default fields from
29+
inside the `aes()` function.
30+
* Passing empty unmapped aesthetics to layers raises a warning instead of
31+
throwing an error (@teunbrand, #6009).
32+
* Moved {mgcv} from Imports to Suggests (@teunbrand, #5986)
33+
* New `reset_geom_defaults()` and `reset_stat_defaults()` to restore all geom or
34+
stat default aesthetics at once (@teunbrand, #5975).
35+
* `facet_wrap()` can have `space = "free_x"` with 1-row layouts and
36+
`space = "free_y"` with 1-column layouts (@teunbrand)
37+
* Secondary axes respect `n.breaks` setting in continuous scales (@teunbrand, #4483).
38+
* Layers can have names (@teunbrand, #4066).
39+
* (internal) improvements to `pal_qualitative()` (@teunbrand, #5013)
40+
* `coord_radial(clip = "on")` clips to the panel area when the graphics device
41+
supports clipping paths (@teunbrand, #5952).
42+
* (internal) Panel clipping responsibility moved from Facet class to Coord
43+
class through new `Coord$draw_panel()` method.
44+
* `theme(strip.clip)` now defaults to `"on"` and is independent of Coord
45+
clipping (@teunbrand, 5952).
46+
* (internal) rearranged the code of `Facet$draw_panels()` method (@teunbrand).
47+
* Axis labels are now justified across facet panels (@teunbrand, #5820)
48+
* Fixed bug in `stat_function()` so x-axis title now produced automatically
49+
when no data added. (@phispu, #5647).
50+
* geom_sf now accepts shape names (@sierrajohnson, #5808)
51+
* Added `gg` class to `labs()` (@phispu, #5553).
352
* Missing values from discrete palettes are no longer translated
453
(@teunbrand, #5929).
554
* Fixed bug in `facet_grid(margins = TRUE)` when using expresssions
@@ -133,6 +182,17 @@
133182
(@teunbrand, #5938, #4327).
134183
* Fixed bug where empty discrete scales weren't recognised as such
135184
(@teunbrand, #5945).
185+
* (internal) The summary function of `stat_summary()` and `stat_summary_bin()`
186+
is setup once in total instead of once per group (@teunbrand, #5971)
187+
* `facet_grid(space = "free")` can now be combined with `coord_fixed()`
188+
(@teunbrand, #4584).
189+
* `theme_classic()` now has black ticks and text instead of dark gray. In
190+
addition, `theme_classic()`'s axis line end is `"square"` (@teunbrand, #5978).
191+
* {tibble} is now suggested instead of imported (@teunbrand, #5986)
192+
* The ellipsis argument is now checked in `fortify()`, `get_alt_text()`,
193+
`labs()` and several guides (@teunbrand, #3196).
194+
* `stat_summary_bin()` no longer ignores `width` parameter (@teunbrand, #4647).
195+
* Added `keep.zeroes` argument to `stat_bin()` (@teunbrand, #3449)
136196

137197
# ggplot2 3.5.1
138198

@@ -179,6 +239,7 @@ documentation updates.
179239
* `annotate()` now warns about `stat` or `position` arguments (@teunbrand, #5151)
180240
* `guide_coloursteps(even.steps = FALSE)` now works with discrete data that has
181241
been formatted by `cut()` (@teunbrand, #3877).
242+
* `ggsave()` now offers to install svglite if needed (@eliocamp, #6166).
182243

183244
# ggplot2 3.5.0
184245

0 commit comments

Comments
 (0)