plot_s: Mapping spatially (and non-spatially) varying coefficients...

View source: R/plot_s.R

plot_sR Documentation

Mapping spatially (and non-spatially) varying coefficients (SVCs or SNVC)

Description

This function plots spatially and non-spatially varying coefficients (SNVC) or spatially varying coefficients (SVC). Note that SNVC = SVC + NVC (NVC is a coefficient varying with respect to explanatory variable value)

Usage

plot_s( mod, xnum = 0, btype = "snvc", xtype = "x", pmax = NULL, ncol = 8,
        col = NULL, inv =FALSE, brks = "regular", cex = 1, pch = 20, nmax = 20000)

Arguments

mod

Outpot from resf, besf, resf_vc, or besf_vc function

xnum

For resf_vc and besf_vc, xnum-th S(N)VC on x is plotted. If num = 0, spatially varying intercept is plotted. For resf and besf, estimated spatially dependent component in the residuals is plotted irrespective of the xnum value. Default is 0

btype

Effective for resf_vc and besf_vc. If "snvc" (default), SNVC (= SVC + NVC) is plotted. If "svc" , SVC 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 S(N)VC to be displayed. For example, if pmax = 0.05, 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

See Also

resf, besf, resf_vc, besf_vc


spmoran documentation built on April 29, 2023, 1:13 a.m.

Related to plot_s in spmoran...