Skip to content

Commit 99bc8c8

Browse files
committed
Revert #4434
1 parent 389b864 commit 99bc8c8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

NEWS.md

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

3+
* Revert changes made in #4434 (apply transform to intercept in `geom_abline()`)
4+
as it introduced undesirable issues far worse than the bug it fixed.
5+
36
# ggplot2 3.3.4
47
This is a larger patch release fixing a huge number of bugs and introduces a
58
small selection of feature refinements.

R/ggplot-global.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ ggplot_global$element_tree <- list()
2020
"colour", "fg", "fill", "group", "hjust", "label", "linetype", "lower",
2121
"lty", "lwd", "max", "middle", "min", "pch", "radius", "sample", "shape",
2222
"size", "srt", "upper", "vjust", "weight", "width", "x", "xend", "xmax",
23-
"xmin", "xintercept", "y", "yend", "ymax", "ymin", "yintercept", "z",
24-
"intercept"
23+
"xmin", "xintercept", "y", "yend", "ymax", "ymin", "yintercept", "z"
2524
)
2625

2726
ggplot_global$all_aesthetics <- .all_aesthetics
@@ -49,7 +48,7 @@ ggplot_global$base_to_ggplot <- .base_to_ggplot
4948
# These two vectors must match in length and position of symmetrical aesthetics
5049
# xintercept2 is a filler to match to the intercept aesthetic in geom_abline
5150
ggplot_global$x_aes <- c("x", "xmin", "xmax", "xend", "xintercept",
52-
"xmin_final", "xmax_final", "xlower", "xmiddle", "xupper", "x0", "xintercept2")
51+
"xmin_final", "xmax_final", "xlower", "xmiddle", "xupper", "x0")
5352

5453
ggplot_global$y_aes <- c("y", "ymin", "ymax", "yend", "yintercept",
55-
"ymin_final", "ymax_final", "lower", "middle", "upper", "y0", "intercept")
54+
"ymin_final", "ymax_final", "lower", "middle", "upper", "y0")

0 commit comments

Comments
 (0)