lines.variomodel.variofit {geoR} | R Documentation

## Adds a Line with a Fitted Variogram Model to a Variogram Plot

### Description

This function adds a line with the variogram model fitted by the function `variofit` to a current variogram plot.

### Usage

    ## S3 method for class 'variofit':
    lines.variomodel(x, max.dist, scaled = FALSE, ...)

### Arguments

`x` | an object of the class `variofit` which is a list containing information about the fitted model parameters, typically an output of the function `variofit`.
`max.dist` | maximum distance (x-axis) to compute and draw the line representing the variogram model. The default is the distance given by `x$max.dist`.
`scaled` | logical. If `TRUE` the total sill in the plot is set to 1.
`...` | arguments to be passed to the function `curve`.

### Details

Adds fitted variogram model to a plot. In conjuction with `plot.variogram` can be used to compare empirical variograms against fitted models returned by `variofit`.

### Value

A line with a variogram model is added to a plot on the current graphics device. No values are returned.

### Author(s)

Paulo Justiniano Ribeiro Jr. paulojus@leg.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.

### References

Further information on the package geoR can be found at:
http://www.leg.ufpr.br/geoR.

### See Also

`lines.variomodel`, `lines.variomodel.likGRF`, `plot.variogram`, `lines.variogram`, `variofit`, `likfit`, `curve`.

### Examples

    # compute and plot empirical variogram
    vario <- variog(s100, max.dist = 1)
    plot(vario)
    # estimate parameters
    vario.wls <- variofit(vario, ini = c(1, .3), fix.nugget = TRUE)
    # adds fitted model to the plot
    lines(vario.wls)

[Package geoR version 1.6-19 Index]