plot_residsVSxy: Residual plot vs space for 'pffr' models

Description Usage Arguments

View source: R/residual_plots.R

Description

Plot the residuals of a function-on-scalar model fitted with pffr, which includes a spatial component, against the latter. Note: This function can only be used for situations, where measurements took place at a set of fixed locations in 2D, which all have multiple measurements. Situations where each observations has a unique metric value on the x and/or y axis are not supported. Neither are other spatial dimensions than 2D.

Usage

1
2
3
plot_residsVSxy(model, dat_xy, breaks, labels_cut = NULL,
  base_size = 11, legend_rows = NULL, legend_cols = NULL,
  mark_location = NULL, mark_location_size = 5, ...)

Arguments

model

Function-on-scalar model fitted with pffr

dat_xy

Data set precalculated with prepareData_residsVSxy, containing information on the mean residuals per measurement location.

breaks

breaks to be used for the colors of the residual categories. E.g. c(-10,0,10) to show the residuals categorized in c("(-10,0]","(0,10]")

labels_cut

Optional labels for the categories defined using breaks.

base_size

see theme_bw

legend_rows, legend_cols

Optional parameters specifying the grid of legend elements in guide_legend

mark_location

Optional row number dat_xy for which the location should be marked by a special black dot in the plot

mark_location_size

Size of the black dot for mark_location

...

Further arguments passed to theme


bauer-alex/FoSIntro documentation built on Feb. 11, 2022, 8:33 a.m.