Skip to content

Commit b46d960

Browse files
authored
Add intercept to list of known y aesthetics (#4434)
1 parent 79d45ac commit b46d960

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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+
* Fix a bug in `geom_abline()` that resulted in `intercept` not being subjected
4+
to the transformation of the y scale (@thomasp85, #3741)
5+
36
* Fix bug in `guide_coloursteps()` that would repeat the terminal bins if the
47
breaks coincided with the limits of the scale (@thomasp85, #4019)
58

R/ggplot-global.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ 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"
23+
"xmin", "xintercept", "y", "yend", "ymax", "ymin", "yintercept", "z",
24+
"intercept"
2425
)
2526

2627
ggplot_global$all_aesthetics <- .all_aesthetics
@@ -49,4 +50,4 @@ ggplot_global$x_aes <- c("x", "xmin", "xmax", "xend", "xintercept",
4950
"xmin_final", "xmax_final", "xlower", "xmiddle", "xupper", "x0")
5051

5152
ggplot_global$y_aes <- c("y", "ymin", "ymax", "yend", "yintercept", "ymin_final",
52-
"ymax_final", "lower", "middle", "upper", "y0")
53+
"ymax_final", "lower", "middle", "upper", "y0", "intercept")

0 commit comments

Comments
 (0)