plot_predicted_process: Plot the observed (or true) and predicted spatial data

View source: R/plot_predicted_process.R

plot_predicted_processR Documentation

Plot the observed (or true) and predicted spatial data

Description

Plot the fitted model from the output of mcmc_mra() or mcmc_mra_integrated(). Also add in the observed (or true data if using simulated/hold out data) to compare model fit to the data.

Usage

plot_predicted_process(
  out,
  data,
  preds,
  base_size = 12,
  file = NULL,
  width = 16,
  height = 9
)

Arguments

out

The output from mcmc_mra() or mcmc_mra_integrated()

data

A dataframe with four columns: Lat, Lon, Observed, Truth

preds

A prediction object that is the output of predict_mra()

base_size

The base size for the plot

file

If file = NULL, the ggplot object is returned. If file is not NULL, an image is saved to the file path specified by file

width

If a file path is specified, width determines the width of the saved image (in inches)

height

If a file path is specified, height determines the height of the saved image (in inches)

Value

Either a ggplot object of the predicted process (if file = NULL) or a saved image file with no return (file is not NULL)


jtipton25/BayesMRA documentation built on Feb. 28, 2024, 1:27 p.m.