Skip to content

Commit

Permalink
ggplot warnings recommend including after_stat instead
Browse files Browse the repository at this point in the history
  • Loading branch information
stiatragul authored Oct 9, 2023
1 parent fea0b5f commit e6d21ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/enmtools.vip.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ enmtools.vip <- function(model, metric = "auc", nsim = 10, method = "permute", v

output[["permute.plot"]] <- ggplot(plotdf,
aes_string(x = "Importance",
fill = "..x..")) +
fill = after_stat("..x.."))) +
geom_histogram(bins = 20) +
theme_bw() +
geom_hline(yintercept = 0, color = "grey") +
Expand Down

0 comments on commit e6d21ad

Please sign in to comment.