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>
plot border
2 messages · Muhammad Rahiz, Robert J. Hijmans
2 days later
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.
Muhammad,
I have no idea what you mean with "how can I get the outline/border of the
image?", but perhaps the below helps:
library(raster)
r <- raster("obs.r06q7.nc")
image(r)
x11()
plot(r)
Robert
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/plot-border-tp6617841p6627574.html
Sent from the R-sig-geo mailing list archive at Nabble.com.