https://github.com/cran/fields
Raw File
Tip revision: c71fb7f6ffa323303affebf0e35a0070faa9c24d authored by Doug Nychka on 10 May 2004, 00:00:00 UTC
version 1.7.2
Tip revision: c71fb7f
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