Skip to contents

This is the same as plot(loo1) except it uses colour for data groups and point shape for data types.

Usage

plot_loo(
  x,
  include = NULL,
  exclude = NULL,
  data = NULL,
  fishery_labels = c("LL1", "LL2", "LL3", "LL4", "Indonesia", "Australia", "CPUE")
)

Arguments

x

A psis_loo object returned by get_loo or loo::loo.

include

Optional character vector of variable names to include (for example, "pop"). It cannot be supplied with exclude.

exclude

A character vector of variable names to exclude from the plot (e.g., c("aerial", "af", "lf", "cpue")). Default is NULL (no exclusions).

data

Optional model data list. If supplied and it contains af_fishery and/or lf_fishery, AF and LF points are labelled by fishery. Composition points with zero input effective sample size are dropped from the plot.

fishery_labels

Character vector of fishery labels used when data supplies numeric fishery indices.

Value

A ggplot2 object showing the PSIS diagnostic plot with Pareto shape k values. Non-finite Pareto shape values are omitted.