In the example to compare plot model results from many different resampled tidymodels
, how can I change the labels of the x-axis ticks?
autoplot(
grid_results,
rank_metric = "rmse", # <- how to order models
metric = "rmse", # <- which metric to visualize
select_best = TRUE # <- one point per workflow
)
I have tried it for instance with + scale_x_discrete(labels = rep("example", 12))
as an extension to the autoplot object but the plots did not show any labels in this case.
The example refers to the first image under this link, heading: 15.3 TUNING AND EVALUATING THE MODELS