View source: R/residual_plots.R
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.
1 2 3 |
model |
Function-on-scalar model fitted with |
dat_xy |
Data set precalculated with |
breaks |
breaks to be used for the colors of the residual categories.
E.g. |
labels_cut |
Optional labels for the categories defined using |
base_size |
see |
legend_rows, legend_cols |
Optional parameters specifying the grid of
legend elements in |
mark_location |
Optional row number |
mark_location_size |
Size of the black dot for |
... |
Further arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.