next up previous
Next: Working with shape files Up: Spatial and spatio-temporal data Previous: Spatial and spatio-temporal data


Image plots for displaying spatial observations

One nice way to display observations that are indexed spatially is small blocks of differing color, where the two axes represent two-dimensional space. This uses the image.plot() function from the fields package.  
tmp=as.image(y,x=locns) # y is a vector of observations, and x a two-column matrix of locations 
image.plot(tmp$x,tmp$y,tmp$z,col=tim.colors(32),xlab="",ylab="")

Keywords: image.plot, R, plot, observations, spatial

Last modified 11/19/05.



Chris Paciorek 2007-12-28