[R-sig-Geo] SpatialGridDataFrame Help

Roger Bivand Roger.Bivand at nhh.no
Thu Aug 26 21:25:14 CEST 2010


On Thu, 26 Aug 2010, dkod wrote:

>
> Roger
>
> Could you give me a hint on how I can add a landform background to my grid
> plot?
>
> How do I use the maps packages'   world coordinates to show the landforms.

See map2SpatialLines() in maptools, work out whether to transform, or at 
least to assign the correct CRS. Note that image.plot() - if you are still 
using that function - does not stretch the Northings (y-axis), so if you 
are away from the Equator, your output will look flattened. Plotting 
functions in the sp and maps packages do stretch when the data are known 
to be in geographical coordinates.

Roger

>
> Thanks again
>
> Kelly O'Day
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list