powered by
Plot the spatially-dependent parameter for in-sample locations.
plot_spatial_param( out, parameter, loadings = 1, type = "mean", ci.level = c(0.025, 0.975), yearscale = TRUE, color.gradient = (grDevices::colorRampPalette(rev(RColorBrewer::brewer.pal(9, name = "RdBu"))))(50) )
A plot of spatially-dependent parameter values for the observed locations.
Output from BSTFA or BSTFAfull.
One of 'slope' (default), 'loading', or 'mean'.
'slope'
'loading'
'mean'
If parameter='loading', an integer indicating which factor loading to plot.
parameter='loading'
One of mean (default), median, ub, or lb indicating which summary statistic to plot at each location.
mean
median
ub
lb
If type='lb' or 'ub', the percentiles for the posterior interval.
type='lb'
'ub'
If parameter='slope', a logical scalar indicating whether to translate it to a yearly scale (TRUE; default).
parameter='slope'
TRUE
The color palette to use for the plot. Default is colorRampPalette(rev(RColorBrewer::brewer.pal(9, name='RdBu')))(50).
colorRampPalette(rev(RColorBrewer::brewer.pal(9, name='RdBu')))(50)
Adam Simpson and Candace Berrett
data(out.sm) attach(out.sm) plot_spatial_param(out.sm, parameter='slope')
Run the code above in your browser using DataLab