Для отображения графиков частичных зависимостей создается следующая модель объяснения_tidymodels.
explainer <- explain_tidymodels(rf_vi_fit, data = Data_train, y = Data_train$Lead_week)
Теперь я создаю графики, делая следующее:
model_profile(explainer, variables = c( "AC", "Jaar, "Month", "Retentie")) %>% plot()
Теперь я получаю следующее изображение:
Проблема в том, что, во-первых, текст Created for the workflow model блокирует мой заголовок AC. Во-вторых, я хочу изменить цвет с синего на красный. Я пробовал %›% plot(color = red) и %›% plot(col = red), но оба не работают.
Кто-нибудь знает, как исправить одну из этих проблем с графикой? Заранее спасибо!