giuseppec / giuseppec/iml

Deprecation warning from ggplot2: aes_string() used in FeatureEffect plots

Open
#224 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
503
Forks
87
PR merge metrics
No merged PRs in 30d

Description

Hello,

When using the iml package with recent versions of ggplot2, I get the following warning when plotting FeatureEffect objects (ALE, PDP):

Warning:
`aes_string()` was deprecated in ggplot2 3.0.0.
The deprecated feature was likely used in the iml package.

This occurs, for example, with:

FeatureEffect$new(predictor, feature = "lstat", method = "ale")
plot(...)

The plot is generated correctly, so this is not a critical issue, but the warning appears consistently and may be confusing for users (especially in teaching materials).

I understand this is due to ggplot2 changes, but I wanted to report it in case it is helpful for future updates.

Best regards,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.