Skip to content

Commit

Permalink
Making bw argument in stat_density case insensitive. Fixes #5941 (#6041)
Browse files Browse the repository at this point in the history
  • Loading branch information
sierrajohnson committed Aug 15, 2024
1 parent c706a01 commit c4c826a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/stat-density.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ reflect_density <- function(dens, bounds, from, to) {
precompute_bw = function(x, bw = "nrd0") {
bw <- bw[1]
if (is.character(bw)) {
bw <- to_lower_ascii(bw)
bw <- arg_match0(bw, c("nrd0", "nrd", "ucv", "bcv", "sj", "sj-ste", "sj-dpi"))
bw <- switch(
to_lower_ascii(bw),
Expand Down

0 comments on commit c4c826a

Please sign in to comment.