Mapping spatially and spatio-temporally varying coefficients
Mapping spatially and spatio-temporally varying coefficients
This function plots spatially varying coefficients (SVC) and spatio-temporally varying coefficients (STVC) with/without coefficient varying with respect to the value of the explanatory variable (NVC). Namely, the full varying coefficient equals STVC + NVC.
mod: Outpot from resf, besf, resf_vc, besf_vc, or addlearn_local function
xnum: For resf_vc, besf_vc, and addlearn_local, xnum-th SVC/STVC is plotted. If num = 0, varying intercept is plotted. For resf and besf, estimated spatially dependent residual process is plotted irrespective of the xnum value. Default is 0
btype: Effective if x_nvc =TRUE in resf_vc and besf_vc. If "all" (default), the estiamted varying coefficients (S(T)VC + NVC) are plotted as they are. If "svc", S(T)VC is plotted. If "nvc", NVC is plotted.
xtype: If "x" (default), coefficients on x is plotted. If "xconst", those on xconst is plotted
pmax: The maximum p-value for the varying coefficients to be displayed. For example, if pmax = 0.05, the only coefficients that are statistically significant at the 5 percent level are plotted. If NULL, all the coefficients are plotted. Default is NULL
ncol: Number of colors in the color palette. Default is 8
col: Color palette used for the mapping. If NULL, the blue-pink-yellow color scheme is used. Palettes in the RColorBrewer package are available. Default is NULL
inv: If TRUE, the color palett is inverted. Default is FALSE
brks: If "regular", color is changed at regular intervals. If "quantile", color is changed for each quantile
cex: Size of the dots representing sample sites
pch: A number indicating the symbol to use
nmax: If sample size exceeds nmax, nmax samples are randomly selected and plotted. Default is 20,000
coords_z1_lim: Value range for coords_z[,1] in the meigen/meigen_f function (vector). If is has two elements, the samples whose coords_z[,1] values are in between these values are plotted. If it is a scalar, samples satisfying coords_z[,1]==coords_z1_lim is plotted
coords_z2_lim: Value range for coords_z[,2] (vector).