https://github.com/cran/fields
Raw File
Tip revision: 2bda12315a515ba5d05053448a464d56f34ef2d9 authored by Doug Nychka on 13 January 2003, 16:33:19 UTC
version 1.4
Tip revision: 2bda123
plot.vgram.matrix.r
"plot.vgram.matrix" <-
function(obj,...){
# check if just radil distance has been used for vgram
collapse<- is.null( obj$ind)
#
if( !collapse){

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

}
back to top