View source: R/plot_predicted_process.R
plot_predicted_process | R Documentation |
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.
plot_predicted_process(
out,
data,
preds,
base_size = 12,
file = NULL,
width = 16,
height = 9
)
out |
The output from |
data |
A dataframe with four columns: Lat, Lon, Observed, Truth |
preds |
A prediction object that is the output of |
base_size |
The base size for the plot |
file |
If |
width |
If a file path is specified, |
height |
If a file path is specified, |
Either a ggplot object of the predicted process (if file = NULL
) or a saved image file with no return (file
is not NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.