Learn R Programming

deform (version 1.0.0)

variogram: Plot the variogram for a fitted deform object

Description

Plot the variogram for a fitted deform object

Usage

variogram(object, bins = 20, bin.function = "pretty", trim = 0, ...)

Value

Plot of variogram

Arguments

object

a fitted deform object

bins

an integer specifying the number of bins for plotting

bin.function

a character specifying a function to use to calculate bins; defaults to pretty()

trim

a scalar in [0, 0.5], which is passed to mean() when calculating binned variogram estimates; defaults to 0

...

extra arguments to pass to plot()

Examples

Run this code

# \donttest{

# deformations
data(solar)
m0 <- deform(solar$x, solar$z, solar$n)

# empirical versus model-based variogram estimates against distance,
# where distance is based on D-space
variogram(m0)
# which is the default with approximately 20 bins, i.e. variogram(m0, bins = 20)

# }

# variogram for one-dimensional expansion without binning
data(solar)
m1 <- expand(solar$x, solar$z, solar$n)
variogram(m1, bins = 0)

Run the code above in your browser using DataLab