Skip to content

Commit

Permalink
fix for rare error caused by passing list(TRUE) to remove_missing(na.…
Browse files Browse the repository at this point in the history
…rm = ) in afex package
  • Loading branch information
eclarke committed Dec 15, 2022
1 parent e272543 commit 61271f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/position-quasirandom.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ PositionQuasirandom <- ggplot2::ggproto("PositionQuasirandom", Position,
},

compute_panel = function(data, params, scales) {
data <- ggplot2::remove_missing(data, na.rm = params$na.rm)
data <- ggplot2::remove_missing(data, na.rm = as.logical(params$na.rm))
data <- flip_data(data, params$flipped_aes)

# perform dodging if necessary
Expand Down

0 comments on commit 61271f9

Please sign in to comment.