Skip to content

Commit 93ca1fe

Browse files
committed
Merge branch 'v3.3.0-rc' of https://github.com/tidyverse/ggplot2 into v3.3.0-rc
2 parents d3f8757 + 648ab43 commit 93ca1fe

File tree

12 files changed

+6590
-9568
lines changed

12 files changed

+6590
-9568
lines changed

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ fail.
2727
(`NA`) rather than drawing a white one. (@annennenne, #3180)
2828

2929
* `geom_ribbon()` now draws separate lines for the upper and lower intervals if
30-
`colour` is mapped by default. Similarly, `geom_area()` now draws lines for
31-
the upper in the same case by default. If you want old-style full stroking,
32-
use `outlier.type = "legacy"` (#3503, @yutannihilation).
30+
`colour` is mapped. Similarly, `geom_area()` and `geom_density()` now draw
31+
the upper lines only in the same case by default. If you want old-style full
32+
stroking, use `outline.type = "full"` (@yutannihilation, #3503 / @thomasp85, #3708).
3333

3434
## New features
3535

R/annotation-map.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ NULL
1515
#'
1616
#' seal.sub <- subset(seals, long > -130 & lat < 45 & lat > 40)
1717
#' ggplot(seal.sub, aes(x = long, y = lat)) +
18-
#' annotation_map(usamap, fill = "NA", colour = "grey50") +
18+
#' annotation_map(usamap, fill = NA, colour = "grey50") +
1919
#' geom_segment(aes(xend = long + delta_long, yend = lat + delta_lat))
2020
#' }
2121
#'
@@ -25,7 +25,7 @@ NULL
2525
#' longr = cut(long, 2))
2626
#'
2727
#' ggplot(seal2, aes(x = long, y = lat)) +
28-
#' annotation_map(usamap, fill = "NA", colour = "grey50") +
28+
#' annotation_map(usamap, fill = NA, colour = "grey50") +
2929
#' geom_segment(aes(xend = long + delta_long, yend = lat + delta_lat)) +
3030
#' facet_grid(latr ~ longr, scales = "free", space = "free")
3131
#' }

R/geom-density.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ geom_density <- function(mapping = NULL, data = NULL,
5959
show.legend = NA,
6060
inherit.aes = TRUE,
6161
outline.type = "upper") {
62-
outline.type <- match.arg(outline.type, c("both", "upper", "lower", "legacy"))
62+
outline.type <- match.arg(outline.type, c("both", "upper", "lower", "full"))
6363

6464
layer(
6565
data = data,

R/geom-ribbon.r

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#' @inheritParams geom_bar
2424
#' @param outline.type Type of the outline of the area; `"both"` draws both the
2525
#' upper and lower lines, `"upper"`/`"lower"` draws the either lines only.
26-
#' `"legacy"` draws a closed polygon around the area.
26+
#' `"full"` draws a closed polygon around the area.
2727
#' @export
2828
#' @examples
2929
#' # Generate data
@@ -49,7 +49,7 @@ geom_ribbon <- function(mapping = NULL, data = NULL,
4949
show.legend = NA,
5050
inherit.aes = TRUE,
5151
outline.type = "both") {
52-
outline.type <- match.arg(outline.type, c("both", "upper", "lower", "legacy"))
52+
outline.type <- match.arg(outline.type, c("both", "upper", "lower", "full"))
5353

5454
layer(
5555
data = data,
@@ -143,13 +143,11 @@ GeomRibbon <- ggproto("GeomRibbon", Geom,
143143
default.units = "native",
144144
gp = gpar(
145145
fill = alpha(aes$fill, aes$alpha),
146-
col = if (identical(outline.type, "legacy")) aes$colour else NA
146+
col = if (identical(outline.type, "full")) aes$colour else NA
147147
)
148148
)
149149

150-
if (identical(outline.type, "legacy")) {
151-
warn(glue('outline.type = "legacy" is only for backward-compatibility ',
152-
'and might be removed eventually'))
150+
if (identical(outline.type, "full")) {
153151
return(ggname("geom_ribbon", g_poly))
154152
}
155153

@@ -181,7 +179,7 @@ geom_area <- function(mapping = NULL, data = NULL, stat = "identity",
181179
position = "stack", na.rm = FALSE, orientation = NA,
182180
show.legend = NA, inherit.aes = TRUE, ...,
183181
outline.type = "upper") {
184-
outline.type <- match.arg(outline.type, c("both", "upper", "lower", "legacy"))
182+
outline.type <- match.arg(outline.type, c("both", "upper", "lower", "full"))
185183

186184
layer(
187185
data = data,

_pkgdown.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ home:
1010
strip_header: true
1111
links:
1212
- text: Learn more
13-
href: http://r4ds.had.co.nz/data-visualisation.html
13+
href: https://r4ds.had.co.nz/data-visualisation.html
1414
- text: Extensions
15-
href: http://www.ggplot2-exts.org/gallery/
15+
href: https://www.ggplot2-exts.org/gallery/
1616

1717
reference:
1818
- title: Plot basics
@@ -40,7 +40,7 @@ reference:
4040
desc: >
4141
A handful of layers are more easily specified with a `stat_` function,
4242
drawing attention to the statistical transformation rather than the visual
43-
appearance. The computed variables can be mapped using `stat()`.
43+
appearance. The computed variables can be mapped using `after_stat()`.
4444
contents:
4545
- stat_ecdf
4646
- stat_ellipse
@@ -50,7 +50,7 @@ reference:
5050
- stat_summary_bin
5151
- stat_unique
5252
- stat_sf_coordinates
53-
- stat
53+
- after_stat
5454

5555
- title: "Layer: position adjustment"
5656
desc: >
@@ -103,10 +103,15 @@ reference:
103103
Guides are mostly controlled via the scale (e.g. with the `limits`,
104104
`breaks`, and `labels` arguments), but sometimes you will need additional
105105
control over guide appearance. Use `guides()` or the `guide` argument to
106-
individual scales along with `guide_colourbar()` or `guide_legend()`.
106+
individual scales along with `guide_*()` functions.
107107
contents:
108+
- draw_key
108109
- guide_colourbar
109110
- guide_legend
111+
- guide_axis
112+
- guide_bins
113+
- guide_coloursteps
114+
- guide_none
110115
- guides
111116
- sec_axis
112117

@@ -244,4 +249,4 @@ navbar:
244249
href: news/index.html
245250
extensions:
246251
text: Extensions
247-
href: http://www.ggplot2-exts.org/gallery/
252+
href: https://www.ggplot2-exts.org/gallery/

man/annotation_map.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/geom_density.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/geom_ribbon.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)