Hi Komine,
saving the image in your way you just save the 'plot'. If you want an image
with the spatial information (GEOTiff for example), you have to use a
specific function to create the file! You can use the raster package or the
rgdal package for example
Look at the writeGDAL() function of the 'gdal' package or the writeRaster()
function of the raster package (more or less is the same).

Greetings,

-- 
Maurizio Marchi
PhD student
ID skype: maurizioxyz
R 3.0.1
GRASS 6.4.3
Qgis 1.8.1
*Ubuntu 12.04 LTS (Precise Pangolin)*
*"Il bello dell'open-source è che le domande possono essere poste alla
fonte"*
*utente linux 552.742*
*
*
*
*

> ------------------------------
>
> Message: 8
> Date: Tue, 2 Jul 2013 10:35:22 -0700 (PDT)
> From: Komine <momadou@yahoo.fr>
> To: r-sig-geo@r-project.org
> Subject: [R-sig-Geo] Export raster from R to Arcgis
> Message-ID: <1372786522374-7583995.post@n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Dear,
> My objective is to save a raster created with R and to open it with Arcgis
> in maintaining spatial reference.
> I used GPS points (XYZ, spatial reference: WGS 84, UTM) with which I
> created
> a raster following this code:
>
> >
> Image<-read.table("C:\\Users\\Documents\\data.txt",sep="",dec=",",header=TRUE)
> > library(raster)
> > testo<-rasterFromXYZ(Image)
> > map<-plot(testo)
>
> Then, I save the output by clicking < File < save < and to choose format
> (.tif).
> However, When I open the output with Arcgis, it has not spatial reference.
> How to save the output into .tif in maintaining the spatial reference.
> Thank you in advance
> Komine
>

	[[alternative HTML version deleted]]

