error_lbl: Labels for accuracy metric

View source: R/visualize.R

error_lblR Documentation

Labels for accuracy metric

Description

Labels for accuracy metric

Usage

error_lbl(
  truth,
  estimate,
  show_metrics = c("rmse", "mean", "bias", "corr"),
  metrics_lbl = c(rmse = "RMSE", mean = "Mean Abs. Dev.", bias = "Mean Dev.", corr =
    "Correlation"),
  err_accuracy = 0.1,
  is_percent = TRUE,
  suff = ifelse(is_percent, "pp", "")
)

Arguments

truth

Vector of true values

estimate

Vector of estimates, must be the same length as truth. In fact, the metrics are invariant to which goes in which.

show_metrics

The metrics to show. Defaults to RMSE and accuracy

metrics_lbl

The labels to show for each metric. Named vector

err_accuracy

Significant digits for percentage points. Corresponds to the accuracy argument in scales::percent

is_percent

Is the error displayed in percent (pp)?

suff

Suffix units to put on


kuriwaki/ccesMRPviz documentation built on May 12, 2022, 11:50 p.m.