Skip to content

Commit

Permalink
Merge pull request #244 from stiatragul/master
Browse files Browse the repository at this point in the history
ggplot warnings recommend including after_stat instead
  • Loading branch information
danlwarren authored Jan 15, 2024
2 parents f57e5bf + e6d21ad commit 5bc3e88
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 @@ -152,7 +152,7 @@ enmtools.vip <- function(model, metric = "roc_auc", nsim = 10, method = "permute

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 5bc3e88

Please sign in to comment.