Skip to content

from R to ArcMap

3 messages · Rui Catarino, Robert J. Hijmans, Paul Hiemstra

#
Rui,
For writing to raster formats that can be read by ArcGIS you can have
a look at writeGDAL() in 'rgdal' or writeRaster() in 'raster'.
None of these formats support cells of varying sizes (which I believe
is something that levelplot might produce).
Robert
On Fri, May 28, 2010 at 1:58 AM, Rui Catarino <R.Catarino at marlab.ac.uk> wrote:
2 days later
#
On 05/28/2010 10:58 AM, Rui Catarino wrote:
Hi Rui,

If you have your data in the following format in a data.frame (which you 
do not specify):

x    y    z
1    1    3.42
1    2    4.51

You can transfer this to a SpatialPixelsDataFrame by:

coordinates(bla) = ~x+y

assuming your data.frame is named bla. See the documentation of the 
sp-package for more information. After this conversion you can export 
the data to any GIS raster format that your installation of rgdal supports.

cheers,
Paul