svar.plot: Plot a semivariogram object

svar.plotR Documentation

Plot a semivariogram object

Description

Utilities for plotting pilot semivariograms or fitted models.

plot.fitsvar plots a fitted variogram model.

plot.svar.bin plots the binned semivariances.

plot.np.svar plots a local polynomial estimate of the semivariogram.

Usage

## S3 method for class 'fitsvar'
plot(
  x,
  y = NULL,
  legend = TRUE,
  xlab = "distance",
  ylab = "semivariance",
  xlim = NULL,
  ylim = c(0, 1.25 * max(x$fit$sv, na.rm = TRUE)),
  lwd = c(1, 2),
  add = FALSE,
  ...
)

## S3 method for class 'svar.bin'
plot(
  x,
  y = NULL,
  xlab = "distance",
  ylab = "semivariance",
  xlim = NULL,
  ylim = c(0, max(x$biny, na.rm = TRUE)),
  add = FALSE,
  ...
)

## S3 method for class 'np.svar'
plot(
  x,
  y = NULL,
  xlab = "distance",
  ylab = "semivariance",
  xlim = NULL,
  ylim = c(0, max(x$biny, na.rm = TRUE)),
  add = FALSE,
  ...
)

Arguments

x

a variogram object. Typically an output of functions np.svariso or fitsvar.sb.iso.

y

ignored argument.

legend

logical; if TRUE (default), a legend is added to the plot.

xlab

label for the x axis (defaults to "distance").

ylab

label for the y axis (defaults to "semivariance").

xlim

x-limits.

ylim

y-limits.

lwd

line widths for points (estimates) and lines (fitted model) respectively.

add

logical; if TRUE the semivariogram plot is just added to the existing plot.

...

additional graphical parameters (see par).

Value

No return value, called for side effects (generate the plot).

See Also

svariso, np.svariso, fitsvar.sb.iso.


rubenfcasal/npsp documentation built on April 23, 2023, 8:40 a.m.