From 30bb18b7ec2b7ffc642344ee316190e194274d40 Mon Sep 17 00:00:00 2001 From: Thomas Lin Pedersen Date: Thu, 18 Jan 2024 21:06:34 +0100 Subject: [PATCH] Fix #297 --- NEWS.md | 2 ++ R/autohistogram.R | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index f93e7ff9..69afca37 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,6 +10,8 @@ `filter` aesthetic would lead to weird errors. `NA` is now treated as `FALSE` (#306) * `shapeGrob()` is now exported for use by other packages (#303) +* Fix a bug in `geom_autohistogram()` that prevented it to be used with + continuous data (#297) # ggforce 0.4.1 diff --git a/R/autohistogram.R b/R/autohistogram.R index 2c422226..d6bc70af 100644 --- a/R/autohistogram.R +++ b/R/autohistogram.R @@ -97,7 +97,7 @@ StatAutobin <- ggproto('StatAutobin', StatBin, binned <- ggproto_parent(StatBin, self)$compute_group( data, scales, binwidth = binwidth, bins = bins, center = center, boundary = boundary, closed = closed, pad = pad, breaks = breaks, - origin = origin, right = right, drop = drop, width = width + origin = origin, right = right, drop = drop ) }