This autoplot() method can performance metrics that have been ranked using a metric. It can also run autoplot() on the individual results (per wflow_id).

# S3 method for workflow_set
  rank_metric = NULL,
  metric = NULL,
  id = "workflow_set",
  select_best = FALSE,
  std_errs = qnorm(0.95),



A workflow_set whose elements have results.


A character string for which metric should be used to rank the results. If none is given, the first metric in the metric set is used (after filtering by the metric option).


A character vector for which metrics (apart from rank_metric) to be included in the visualization.


A character string for what to plot. If a value of "workflow_set" is used, the results of each model (and sub-model) are ordered and plotted. Alternatively, a value of the workflow set's wflow_id can be given and the autoplot() method is executed on that workflow's results.


A logical; should the results only contain the numerically best submodel per workflow?


The number of standard errors to plot (if the standard error exists).


Other options to pass to autoplot().


A ggplot object.


This function is intended to produce a default plot to visualize helpful information across all possible applications of a workflow set. A more appropriate plot for your specific analysis can be created by calling rank_results() and using standard ggplot2 code for plotting.

The x-axis is the workflow rank in the set (a value of one being the best) versus the performance metric(s) on the y-axis. With multiple metrics, there will be facets for each metric.

If multiple resamples are used, confidence bounds are shown for each result (90% confidence, by default).


autoplot(two_class_res, select_best = TRUE)
autoplot(two_class_res, id = "yj_trans_cart", metric = "roc_auc")