Skip to content

Commit b7a3204

Browse files
committed
Make #5115 backwards compatible
1 parent 0a511ef commit b7a3204

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

R/stat-ecdf.r

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
#' @param pad If `TRUE`, pad the ecdf with additional points (-Inf, 0)
2222
#' and (Inf, 1)
2323
#' @eval rd_computed_vars(
24-
#' ecdf = "Cumulative density corresponding to `x`."
24+
#' ecdf = "Cumulative density corresponding to `x`.",
25+
#' y = "For backward compatibility. Not recommended to use."
2526
#' )
2627
#' @export
2728
#' @examples
@@ -103,6 +104,7 @@ StatEcdf <- ggproto("StatEcdf", Stat,
103104

104105
df_ecdf <- data_frame0(
105106
x = x,
107+
y = data_ecdf,
106108
ecdf = data_ecdf,
107109
.size = length(x)
108110
)

man/stat_ecdf.Rd

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

0 commit comments

Comments
 (0)