# morans.plot

0th

Percentile

##### Autocorrelation Plot

Autocorrelation plot (Anselin 1996), following Chen (2015), aka, Moran's-I plot (univariate or bivariate)

##### Usage
morans.plot(
x,
y = NULL,
coords = NULL,
type.ac = c("xy", "yx"),
dist.function = "inv.power",
scale.xy = TRUE,
scale.morans = FALSE,
...
)
##### Arguments
x

Vector of x response variables

y

Vector of y response variables

coords

A matrix of coordinates corresponding to [x,y]

type.ac

Type of autocorrelation plot ("xy", "yx")

dist.function

("inv.power", "neg.exponent")

scale.xy

(TRUE/FALSE) scale the x,y vectors

scale.morans

(FALSE/TRUE) standardize the Moran's index to an expected [-1 to 1]?

...

##### Details

The argument "type" controls the plot for x influencing y (type="xy") or y influencing x (type="yx"). If y is not defined then the statistic is univariate and only the "xy" plot will be available. The linear relationship between x and its spatial lag (Wx) is indicative of the spatial autoregressive process, underlying the spatial dependence. The statistic can be autocorrelation (univariate or cross-correlation (bivariate). The quadrants are the zero intercept for random autocorrelation and the red line represents the trend in autocorrelation. The quadrants in the plot indicate the type of spatial association/interaction (Anselin 1996). For example the upper-left quadrant represents negative associations of low values surrounded by high and the lower-right quadrant represents negative associations of high values surrounded by low.

##### Value

A plot of the scaled variable against its spatially lagged values.

##### Note

if y is not specified the univariate statistic for x is returned. the coords argument is only used if k = NULL. Can also be an sp object with relevant x,y coordinate slot (ie., points or polygons). If w = NULL, the default method for deriving spatial weights matrix, options are: inverse power or negative exponent. If scale.xy = FALSE it is assumed that they are already scaled following Chen (2015).

##### References

Chen., Y. (2015) A New Methodology of Spatial Cross-Correlation Analysis. PLoS One 10(5):e0126158. doi:10.1371/journal.pone.0126158

Anselin, L. (1996) The Moran scatterplot as an ESDA tool to assess local instability in spatial association. pp. 111-125 in M. M. Fischer, H. J. Scholten and D. Unwin (eds) Spatial analytical perspectives on GIS, London, Taylor and Francis

Anselin, L. (1995) Local indicators of spatial association, Geographical Analysis, 27:93-115

• morans.plot
##### Examples
# NOT RUN {
library(sp)
library(spdep)
data(meuse)
coordinates(meuse) <- ~x+y

# Autocorrelation (univariate)
morans.plot(meuse$zinc, coords = coordinates(meuse)) # Cross-correlation of: x influencing y and y influencing x opar <- par(no.readonly=TRUE) par(mfrow=c(1,2)) morans.plot(x=meuse$zinc, y=meuse$copper, coords = coordinates(meuse), scale.morans = TRUE) morans.plot(x=meuse$zinc, y=meuse\$copper, coords = coordinates(meuse),
scale.morans = TRUE, type.ac="yx")
par(opar)

# }

Documentation reproduced from package spatialEco, version 1.3-2, License: GPL-3

### Community examples

Looks like there are no examples yet.
{"ft_lang_label":"__label__en","ft_lang_prob":0.6430936,"math_prob":0.9389529,"size":2987,"snap":"2021-04-2021-17","text_gpt3_token_len":779,"char_repetition_ratio":0.123030506,"word_repetition_ratio":0.01891253,"special_character_ratio":0.25376633,"punctuation_ratio":0.17605634,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99583554,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-20T23:32:58Z\",\"WARC-Record-ID\":\"<urn:uuid:da1b0540-bd42-4242-bca1-76f4aaa166e5>\",\"Content-Length\":\"16842\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7e8400e7-bb88-476b-94d8-16e944052443>\",\"WARC-Concurrent-To\":\"<urn:uuid:cfdb054b-4bb0-4d45-a010-e81e64957f56>\",\"WARC-IP-Address\":\"52.20.214.25\",\"WARC-Target-URI\":\"https://www.rdocumentation.org/packages/spatialEco/versions/1.3-2/topics/morans.plot\",\"WARC-Payload-Digest\":\"sha1:BYB44BNFUGPQL6AEE7NN7IMPL5GQVCU6\",\"WARC-Block-Digest\":\"sha1:Q4LNQH3TA6DBDHEL2ACAYGBHAR2ZIMEV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703522133.33_warc_CC-MAIN-20210120213234-20210121003234-00140.warc.gz\"}"}