[R-sig-Geo] plot border

Muhammad Rahiz muhammad.rahiz at ouce.ox.ac.uk
Mon Jul 25 13:01:27 CEST 2011


Hi all,

When running the following script, I can plot the image.
Does anyone know how I can get the outline/border of the image? 
Sample data is attached.

Thanks - Muhammad

library(ncdf)
library(maptools)

dat <- get.var.ncdf(open.ncdf("obs.r06q7.nc"))
lon <- x0$dim[[1]]$val
lat <- x0$dim[[2]]$val
image(lon,lat,dat)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: obs.r06q7.nc
Type: application/x-netcdf
Size: 13480 bytes
Desc: 
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110725/589d37f6/attachment.nc>


More information about the R-sig-Geo mailing list