Skip to contents

Plot "basic" scores that have only one value column such as MSE, bias, MAE etc.

Usage

plot_spatial_line(
  plot_data,
  score_name,
  point_size = 1.2,
  extend_y_to_zero = TRUE,
  line_width = 1,
  y_label = "auto",
  x_label = "auto",
  flip_axes = FALSE,
  ...
)

Arguments

plot_data

A tibble from plot_spatial_verif that contains necessary scores.

score_name

Name of the score to plot. Necessary (compared to other plotting functions) since it will be used to select the respective table that contains the scores.

point_size

The size of points to plot.

extend_y_to_zero

Logical. Whether to extend the y-axis to include zero.

line_width

The width of lines to plot. The default is 1.

y_label

Label for the y-axis. Set to "auto" to use score name. Anything else inside quotes will be used as the y-axis label.

x_label

Label for the x-axis. Set to "auto" to use "Forecast length". Anything else inside quotes will be used as the x-axis label.

flip_axes

Logical of whether to swap the x and y axes.