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 circles of differing color, where the two axes represent two-dimensional space. I've created a 'point map' function, 'pmap', to do this:

  if(shrink<1){ image.plot(y,x=x,add=T,legend.only=T,zlim=zlim,col=col)  

Note that this requires the fields library, which supplies Tim Hoar's nice color scheme, tim.colors(), but you could use another color scheme of your choice. If you use shrink=1, then no legend will be created. You can control the symbol that gets plotted at each location using the pch argument and the size of the symbol using the cex argument.

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

Last modified 12/20/09.

Chris Paciorek 2012-01-21