Learn R Programming

synchrony (version 0.3.8)

plot.vario: Plot vario objects

Description

Plot vario objects

Usage

# S3 method for vario
plot (x, xlab = "Lag distance", ylab = NULL, ylim = NULL,
                      xtype = c("mean.bin.dist", "bins"), rug = FALSE, ci = FALSE,
                      pch = 21, col.sig="black", col.nonsig="black", bg.sig="black", 
                      bg.nonsig = "white", alpha = 0.05, …)

Arguments

x

vario object generated by vario function.

xlab

xlabel of the figure. Default is "Lag distance"

ylab

ylabel of the figure. Default is NULL and will automatically generate the right label

ylim

y-range. Default is NULL and will automatically generate the best range based on the metric

xtype

Use either the discrete bin classes (bins) or the mean distance of the points within each bin (mean.bin.dist) on the x-axis. Default is mean.bin.dist

rug

Plot rug indicating the density of data points? Default is FALSE

ci

Plot two-tailed (1-\(\alpha\))% confidence intervals? Default is FALSE

pch

Type of points to use when plotting the variogram. Default is 21

col.sig

Border color of points for significant values. Default is black

col.nonsig

Border color of points for non-significant values. Default is black

bg.sig

Background color of points for significant values. Default is black

bg.nonsig

Background color of points for non-significant values. Default is black

alpha

Significance level. Default is 0.05

other graphical parameters.

Examples

Run this code
# NOT RUN {
data(pisco.data)
d=subset(pisco.data, subset=year==2000, select=c("latitude", "longitude", "sst"))
semiv=vario(data=d)
moran=vario(data=d, type="moran", nrand=100)
geary=vario(data=d, type="geary", nrand=100)

par(mfrow=c(3,1))
plot(semiv)
plot(moran, bg.sig="blue")
plot(geary, bg.sig="red")
# }

Run the code above in your browser using DataLab