search for: rasterfromxyz

Displaying 1 result from an estimated 1 matches for "rasterfromxyz".

2012 Mar 21
2
To overlay my raster and its boundary
Hi I want to overlay my raster and its boundary which is a shapefile. When I used thise code separately, all is ok: # Open raster >Image<-read.table("C:\\Users\\Documents\\Nouveau\\Frequence.txt",sep="",dec=",",header=TRUE) >testo<-rasterFromXYZ(Image) >plot(testo) >testo2 <- aggregate(testo,fact=10, fun=mean) >plot(testo2) # open shapefiles= boundary >library (rgdal) >test1<-readOGR(dsn="C:\\Users\\Documents\\DISC D\\Nouveau",layer="pays") >plot(test1) But How to overlay both layers (...