ModelOriented / ingredients

Effects and Importances of Model Ingredients
https://modeloriented.github.io/ingredients/
GNU General Public License v3.0
37 stars 18 forks source link

Can't use `coord_flip()` with `plot.aggregated_profiles_explainer` #138

Closed hbaniecki closed 2 years ago

hbaniecki commented 2 years ago

due to the hardcoded scales = "free_x" in facet_wrap. https://github.com/ModelOriented/ingredients/blob/70343335f9c696e4dcdfc127231e7ecd6c17563d/R/plot_aggregated_profiles.R#L154 I propose to add a new scales = "free_x" parameter to the plot.aggregated_profiles_explainer function, so that one could change it to scales = "free_y" with coord_flip() (default will stay the same).