diag_plots: Produces model diagnostic plots

View source: R/diag_plots.R

diag_plotsR Documentation

Produces model diagnostic plots

Description

Produces 6 plots to assess model performance.

Usage

diag_plots(
  mod,
  obs,
  size = 0.1,
  ggplot = TRUE,
  colourblind = FALSE,
  na.rm = FALSE
)

Arguments

mod

dataframe; modelled values in long format.

obs

dataframe; observed values in long format.

size

numeric; size of points in plot. Defaults to 0.1

ggplot

logical; plot in ggplot or base plot. Defaults to TRUE

colourblind

logical; Use colourblind friendly colours. Defaults to FALSE

na, rm

boolean; a logical value indicating whether NA values should be stripped before the computation proceeds. Defaults to FALSE

Value

grob object which can be assigned and then saved using ggsave() function


aemon-j/gotmtools documentation built on April 12, 2024, 4:35 p.m.