Learn R Programming

GeoModels (version 2.1.0)

GeoCovDisplay: Image plot displaying the pattern of the sparsness of a covariance matrix.

Description

Image plot displaying the pattern of the sparsness of a covariance matrix.

Usage

GeoCovDisplay(covmatrix,limits=FALSE,pch=2)

Value

Produces a plot. No values are returned.

Arguments

covmatrix

An object of class GeoCovmatrix. See the Section Details.

limits

Logical; If TRUE and the covariance matrix is spatiotemporal or spatial bivariate then vertical and horizontal lines are added to the image plot.

pch

Type of symbols to use in the image plot.

Details

For a given covariance matrix object (GeoCovmatrix) the function diplays the pattern of the sparsness of a covariance matrix where the white color represents 0 entries and black color represents non zero entries

See Also

GeoCovmatrix

Examples

Run this code

library(GeoModels)


  # Define the spatial-coordinates of the points:
x <- runif(100, 0, 2)
y <- runif(100, 0, 2)
coords=cbind(x,y)
matrix1 <- GeoCovmatrix(coordx=coords, corrmodel="GenWend", param=list(smooth=0,
                      power2=4,sill=1,scale=0.2,nugget=0))
 
GeoCovDisplay(matrix1)

Run the code above in your browser using DataLab