Learn R Programming

synchrony (version 0.3.8)

plot.variofit: Plot variofit objects

Description

Plot variofit objects

Usage

# S3 method for variofit
plot (x, xlab = "Lag distance", ylab = "Variogram",
                         col.pts = "black", col.line = "red", 
                         pch = 21, …)

Arguments

x

variofit object generated by vario.fit function

xlab

xlabel of the figure. Default is "Lag distance"

ylab

ylabel of the figure. Default is "Variogram"

col.pts

Border color of the points. Default is black

col.line

Color of the fitted variogram. Default is red

pch

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

other graphical parameters.

Examples

Run this code
# NOT RUN {
# Environmental variogram
data(pisco.data)
d=subset(pisco.data, subset=year==2000, select=c("latitude", "longitude", "upwelling"))
semiv=vario(data=d)
mod.sph=vario.fit(semiv$vario, semiv$mean.bin.dist)
plot(mod.sph)
# }

Run the code above in your browser using DataLab