https://github.com/cran/fields
Raw File
Tip revision: 8e4f3eaf088a2f2f7992139ada70d2fb655e46de authored by Doug Nychka on 27 August 2003, 16:33:19 UTC
version 1.4.2
Tip revision: 8e4f3ea
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