Skip to content

Commit 6f7791f

Browse files
committed
resolve merge conflict
Merge branch 'main' into geom_xrange_arrow # Conflicts: # R/geom-linerange.R # man/geom_linerange.Rd
2 parents e28bea4 + 7caada4 commit 6f7791f

File tree

559 files changed

+32338
-23635
lines changed

Some content is hidden

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

559 files changed

+32338
-23635
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ about: Submit a bug report to help us improve ggplot2
55

66
### Tips for a helpful bug report:
77

8-
* If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://community.rstudio.com/>.
8+
* If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://forum.posit.co/>.
99

1010
* Please include a **minimal reproducible example**, a reprex, to demonstrate the bug.
1111
If you've never heard of a reprex, please read ["Make a reprex"](https://www.tidyverse.org/help/#reprex).

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
contact_links:
22
- name: Help or discussion
3-
url: https://community.rstudio.com/
4-
about: "Check out options for getting help on the RStudio Community."
3+
url: https://forum.posit.co/
4+
about: "Check out options for getting help on the Posit Community (formerly RStudio Community)."

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ about: Suggest a change or new feature in ggplot2
55

66
### Tips for a helpful feature request:
77

8-
* If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://community.rstudio.com/>.
8+
* If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://forum.posit.co/>.
99

1010
* See the [contributing guidelines](https://github.com/tidyverse/ggplot2/blob/main/CONTRIBUTING.md).
1111

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,22 @@ jobs:
5858
http-user-agent: ${{ matrix.config.http-user-agent }}
5959
use-public-rspm: true
6060

61+
# TODO: remove this when R 4.6 is released
62+
- name: Tweak for old Windows (R 4.1)
63+
uses: r-lib/actions/setup-r-dependencies@v2
64+
if: ${{ matrix.config.os == 'windows-latest' && matrix.config.r == 'oldrel-4' }}
65+
with:
66+
cache-version: 3
67+
extra-packages: >
68+
any::rcmdcheck,
69+
70+
Hmisc=?ignore-before-r=4.2.0,
71+
quantreg=?ignore-before-r=4.3.0
72+
local::.
73+
needs: check
74+
6175
- uses: r-lib/actions/setup-r-dependencies@v2
76+
if: ${{ matrix.config.os != 'windows-latest' || matrix.config.r != 'oldrel-4' }}
6277
with:
6378
cache-version: 3
6479
extra-packages: >

DESCRIPTION

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ggplot2
22
Title: Create Elegant Data Visualisations Using the Grammar of Graphics
3-
Version: 3.5.2.9000
3+
Version: 4.0.1.9000
44
Authors@R: c(
55
person("Hadley", "Wickham", , "[email protected]", role = "aut",
66
comment = c(ORCID = "0000-0003-4757-117X")),
@@ -40,6 +40,7 @@ Imports:
4040
isoband,
4141
lifecycle (> 1.0.1),
4242
rlang (>= 1.1.0),
43+
S7,
4344
scales (>= 1.4.0),
4445
stats,
4546
vctrs (>= 0.6.0),
@@ -51,6 +52,7 @@ Suggests:
5152
ggplot2movies,
5253
hexbin,
5354
Hmisc,
55+
hms,
5456
knitr,
5557
mapproj,
5658
maps,
@@ -61,40 +63,38 @@ Suggests:
6163
nlme,
6264
profvis,
6365
quantreg,
66+
quarto,
6467
ragg (>= 1.2.6),
6568
RColorBrewer,
66-
rmarkdown,
6769
roxygen2,
6870
rpart,
6971
sf (>= 0.7-3),
7072
svglite (>= 2.1.2),
71-
testthat (>= 3.1.5),
73+
testthat (>= 3.3.0),
7274
tibble,
7375
vdiffr (>= 1.0.6),
7476
xml2
7577
Enhances:
7678
sp
77-
VignetteBuilder:
78-
knitr
79+
VignetteBuilder:
80+
quarto
7981
Config/Needs/website: ggtext, tidyr, forcats, tidyverse/tidytemplate
8082
Config/testthat/edition: 3
8183
Config/usethis/last-upkeep: 2025-04-23
8284
Encoding: UTF-8
8385
LazyData: true
8486
Roxygen: list(markdown = TRUE)
85-
RoxygenNote: 7.3.2
87+
RoxygenNote: 7.3.3
8688
Collate:
87-
'ggproto.R'
89+
'aes-delayed-eval.R'
90+
'aes-variants.R'
8891
'ggplot-global.R'
89-
'aaa-.R'
90-
'aes-colour-fill-alpha.R'
91-
'aes-evaluation.R'
92-
'aes-group-order.R'
93-
'aes-linetype-size-shape.R'
94-
'aes-position.R'
92+
'ggproto.R'
93+
'all-classes.R'
9594
'compat-plyr.R'
9695
'utilities.R'
9796
'aes.R'
97+
'annotate.R'
9898
'annotation-borders.R'
9999
'utilities-checks.R'
100100
'legend-draw.R'
@@ -109,7 +109,6 @@ Collate:
109109
'annotation-map.R'
110110
'geom-raster.R'
111111
'annotation-raster.R'
112-
'annotation.R'
113112
'autolayer.R'
114113
'autoplot.R'
115114
'axis-secondary.R'
@@ -128,32 +127,32 @@ Collate:
128127
'coord-sf.R'
129128
'coord-transform.R'
130129
'data.R'
131-
'docs_layer.R'
130+
'docs-aes.R'
131+
'docs-layer.R'
132132
'facet-.R'
133133
'facet-grid-.R'
134+
'facet-labeller.R'
134135
'facet-null.R'
135136
'facet-wrap.R'
136137
'fortify-map.R'
137138
'fortify-models.R'
138139
'fortify-spatial.R'
139140
'fortify.R'
140141
'stat-.R'
141-
'geom-abline.R'
142+
'geom-abline-hline-vline.R'
142143
'geom-rect.R'
143144
'geom-bar.R'
144145
'geom-tile.R'
145146
'geom-bin2d.R'
146147
'geom-blank.R'
147148
'geom-boxplot.R'
148-
'geom-col.R'
149149
'geom-path.R'
150150
'geom-contour.R'
151151
'geom-point.R'
152152
'geom-count.R'
153153
'geom-crossbar.R'
154154
'geom-segment.R'
155155
'geom-curve.R'
156-
'geom-defaults.R'
157156
'geom-ribbon.R'
158157
'geom-density.R'
159158
'geom-density2d.R'
@@ -163,7 +162,6 @@ Collate:
163162
'geom-function.R'
164163
'geom-hex.R'
165164
'geom-histogram.R'
166-
'geom-hline.R'
167165
'geom-jitter.R'
168166
'geom-label.R'
169167
'geom-linerange.R'
@@ -174,13 +172,15 @@ Collate:
174172
'geom-smooth.R'
175173
'geom-spoke.R'
176174
'geom-text.R'
175+
'geom-update-defaults.R'
177176
'geom-violin.R'
178-
'geom-vline.R'
179177
'ggplot2-package.R'
180178
'grob-absolute.R'
181179
'grob-dotstack.R'
182180
'grob-null.R'
183181
'grouping.R'
182+
'properties.R'
183+
'margins.R'
184184
'theme-elements.R'
185185
'guide-.R'
186186
'guide-axis.R'
@@ -199,16 +199,14 @@ Collate:
199199
'hexbin.R'
200200
'import-standalone-obj-type.R'
201201
'import-standalone-types-check.R'
202-
'labeller.R'
203202
'labels.R'
204203
'layer-sf.R'
205204
'layout.R'
206205
'limits.R'
207-
'margins.R'
208-
'performance.R'
209206
'plot-build.R'
210207
'plot-construction.R'
211208
'plot-last.R'
209+
'plot-render.R'
212210
'plot.R'
213211
'position-.R'
214212
'position-collide.R'
@@ -284,6 +282,7 @@ Collate:
284282
'utilities-grid.R'
285283
'utilities-help.R'
286284
'utilities-patterns.R'
285+
'utilities-performance.R'
287286
'utilities-resolution.R'
288287
'utilities-tidy-eval.R'
289288
'zxx.R'

NAMESPACE

Lines changed: 34 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,25 @@
22

33
S3method("$",ggproto)
44
S3method("$",ggproto_parent)
5-
S3method("$",theme)
6-
S3method("$<-",uneval)
7-
S3method("+",gg)
5+
S3method("$<-","ggplot2::element")
6+
S3method("$<-","ggplot2::gg")
7+
S3method("$<-","ggplot2::mapping")
88
S3method("[",mapped_discrete)
9-
S3method("[",uneval)
9+
S3method("[<-","ggplot2::element")
10+
S3method("[<-","ggplot2::gg")
11+
S3method("[<-","ggplot2::mapping")
1012
S3method("[<-",mapped_discrete)
11-
S3method("[<-",uneval)
1213
S3method("[[",ggproto)
13-
S3method("[[<-",uneval)
14+
S3method("[[<-","ggplot2::element")
15+
S3method("[[<-","ggplot2::gg")
16+
S3method("[[<-","ggplot2::mapping")
1417
S3method(.DollarNames,ggproto)
1518
S3method(as.data.frame,mapped_discrete)
16-
S3method(as.gtable,ggplot)
17-
S3method(as.gtable,ggplot_built)
1819
S3method(as.list,ggproto)
1920
S3method(autolayer,default)
2021
S3method(autoplot,default)
2122
S3method(c,mapped_discrete)
2223
S3method(drawDetails,zeroGrob)
23-
S3method(element_grob,element_blank)
24-
S3method(element_grob,element_line)
25-
S3method(element_grob,element_point)
26-
S3method(element_grob,element_polygon)
27-
S3method(element_grob,element_rect)
28-
S3method(element_grob,element_text)
2924
S3method(format,ggproto)
3025
S3method(format,ggproto_method)
3126
S3method(format,rd_section_aesthetics)
@@ -52,30 +47,10 @@ S3method(fortify,sfg)
5247
S3method(fortify,summary.glht)
5348
S3method(fortify,tbl)
5449
S3method(fortify,tbl_df)
55-
S3method(get_alt_text,ggplot)
56-
S3method(get_alt_text,ggplot_built)
57-
S3method(get_alt_text,gtable)
5850
S3method(ggplot,"function")
5951
S3method(ggplot,default)
60-
S3method(ggplot_add,"NULL")
61-
S3method(ggplot_add,"function")
62-
S3method(ggplot_add,Coord)
63-
S3method(ggplot_add,Facet)
64-
S3method(ggplot_add,Guides)
65-
S3method(ggplot_add,Layer)
66-
S3method(ggplot_add,Scale)
67-
S3method(ggplot_add,by)
68-
S3method(ggplot_add,data.frame)
6952
S3method(ggplot_add,default)
70-
S3method(ggplot_add,labels)
71-
S3method(ggplot_add,list)
72-
S3method(ggplot_add,theme)
73-
S3method(ggplot_add,uneval)
74-
S3method(ggplot_build,ggplot)
75-
S3method(ggplot_build,ggplot_built)
76-
S3method(ggplot_gtable,ggplot_built)
7753
S3method(grid.draw,absoluteGrob)
78-
S3method(grid.draw,ggplot)
7954
S3method(grobHeight,absoluteGrob)
8055
S3method(grobHeight,zeroGrob)
8156
S3method(grobWidth,absoluteGrob)
@@ -98,27 +73,18 @@ S3method(limits,numeric)
9873
S3method(makeContext,dotstackGrob)
9974
S3method(make_constructor,Geom)
10075
S3method(make_constructor,Stat)
101-
S3method(merge_element,default)
102-
S3method(merge_element,element)
103-
S3method(merge_element,element_blank)
104-
S3method(merge_element,margin)
10576
S3method(pattern_alpha,GridPattern)
10677
S3method(pattern_alpha,GridTilingPattern)
10778
S3method(pattern_alpha,default)
10879
S3method(pattern_alpha,list)
109-
S3method(plot,ggplot)
11080
S3method(predictdf,default)
11181
S3method(predictdf,glm)
11282
S3method(predictdf,locfit)
11383
S3method(predictdf,loess)
114-
S3method(print,element)
115-
S3method(print,ggplot)
11684
S3method(print,ggplot2_bins)
11785
S3method(print,ggproto)
11886
S3method(print,ggproto_method)
11987
S3method(print,rel)
120-
S3method(print,theme)
121-
S3method(print,uneval)
12288
S3method(scale_type,Date)
12389
S3method(scale_type,POSIXt)
12490
S3method(scale_type,character)
@@ -132,7 +98,6 @@ S3method(scale_type,logical)
13298
S3method(scale_type,numeric)
13399
S3method(scale_type,ordered)
134100
S3method(scale_type,sfc)
135-
S3method(summary,ggplot)
136101
S3method(vec_cast,character.mapped_discrete)
137102
S3method(vec_cast,double.mapped_discrete)
138103
S3method(vec_cast,factor.mapped_discrete)
@@ -288,6 +253,7 @@ export(StatSummaryBin)
288253
export(StatSummaryHex)
289254
export(StatUnique)
290255
export(StatYdensity)
256+
export(add_gg)
291257
export(aes)
292258
export(aes_)
293259
export(aes_all)
@@ -313,6 +279,26 @@ export(binned_scale)
313279
export(borders)
314280
export(calc_element)
315281
export(check_device)
282+
export(class_S3_gg)
283+
export(class_coord)
284+
export(class_derive)
285+
export(class_facet)
286+
export(class_gg)
287+
export(class_ggplot)
288+
export(class_ggplot_built)
289+
export(class_ggproto)
290+
export(class_guide)
291+
export(class_guides)
292+
export(class_labels)
293+
export(class_layer)
294+
export(class_layout)
295+
export(class_mapping)
296+
export(class_rel)
297+
export(class_scale)
298+
export(class_scales_list)
299+
export(class_theme)
300+
export(class_waiver)
301+
export(class_zero_grob)
316302
export(combine_vars)
317303
export(complete_theme)
318304
export(continuous_scale)
@@ -353,6 +339,7 @@ export(draw_key_vline)
353339
export(draw_key_vpath)
354340
export(dup_axis)
355341
export(el_def)
342+
export(element)
356343
export(element_blank)
357344
export(element_geom)
358345
export(element_grob)
@@ -762,6 +749,7 @@ export(transform_position)
762749
export(translate_shape_string)
763750
export(unit)
764751
export(update_geom_defaults)
752+
export(update_ggplot)
765753
export(update_labels)
766754
export(update_stat_defaults)
767755
export(update_theme)
@@ -773,11 +761,13 @@ export(xlim)
773761
export(ylab)
774762
export(ylim)
775763
export(zeroGrob)
764+
if (getRversion() < "4.3.0") importFrom("S7", "@")
776765
import(grid)
777766
import(gtable)
778767
import(rlang)
779768
import(scales)
780769
import(vctrs)
770+
importFrom(S7,convert)
781771
importFrom(grid,arrow)
782772
importFrom(grid,unit)
783773
importFrom(lifecycle,deprecated)

0 commit comments

Comments
 (0)