https://github.com/cran/fields
Raw File
Tip revision: 6769ffc81115fbf0bf7d9c566cf7ac81be0049dc authored by Doug Nychka on 25 July 2005, 00:00:00 UTC
version 3.04
Tip revision: 6769ffc
plot.vgram.matrix.r
"plot.vgram.matrix" <-
function(x,...){
# check if just radil distance has been used for vgram
collapse<- is.null( x$ind)
#
if( !collapse){

nx<- max( x$ind[,1])
ny<- max(  x$ind[,2])
temp<-  matrix( NA,nrow=nx+1, ncol=ny+1)
temp[ x$ind+1] <- x$vgram
image.plot( 0:nx, 0:ny, temp, xlab="X", ylab="Y",...)
}
else( plot( x$d, x$vgram))

}
back to top