Skip to content

plot_min_depth_distribution() and plot_multi_way_importance() throw ggplot2 deprecation warnings #45

Description

@adcascone

Hello,

The functions plot_min_depth_distribution() and plot_multi_way_importance() throw the following ggplot2 deprecation warnings in randomForestExplainer version 0.10.1:

Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.
ℹ The deprecated feature was likely used in the randomForestExplainer package.
  Please report the issue to the authors.
Backtrace:
    ▆
 1. └─randomForestExplainer::plot_min_depth_distribution(min_depth_frame) at randomForestExplainer.R:56:3
 2.   └─ggplot2::geom_errorbar(...)
 3.     └─ggplot2::layer(...)
 4.       └─ggplot2:::deprecate_warn0(...)
`aes_string()` was deprecated in ggplot2 3.0.0.
ℹ Please use tidy evaluation idioms with `aes()`.
ℹ See also `vignette("ggplot2-in-packages")` for more information.
ℹ The deprecated feature was likely used in the randomForestExplainer package.
  Please report the issue to the authors.
Backtrace:
    ▆
 1. └─randomForestExplainer::plot_multi_way_importance(...) at randomForestExplainer.R:78:3
 2.   ├─ggplot2::ggplot(...)
 3.   ├─ggplot2:::ggplot.default(...)
 4.   │ └─ggplot2:::validate_mapping(mapping)
 5.   │   └─S7::S7_inherits(mapping)
 6.   └─ggplot2::aes_string(x = x_measure, y = y_measure, size = size_measure)
 7.     └─ggplot2:::deprecate_warn0(...)

Thank you,
Arianna C.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions