I want to save my raster plot that produced with R to ArcGIS raster (.img, .tif and ASCII) file.

1 Answer 1


Have a look at ?writeRaster from the raster package. Depending on the desired output format, just edit the format argument ("GTiff" for .tif, "HFA" for .img, and "ascii" for ESRI .asc). Here's some sample code,

writeRaster(yourRasterObject, "outputFilename", format = "GTiff")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.