https://github.com/cran/fields
Raw File
Tip revision: 92636eaee56714c89c7b7e7cdc52e0c77aeb79b3 authored by Doug Nychka on 07 February 2005, 00:00:00 UTC
version 2.3
Tip revision: 92636ea
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