Skip to content
Prev 3603 / 29559 Next

displayDataset command

If it is of any help, you might want to take a look at this guide:

"Creating Maps for Publication using R Graphics"
http://www.nceas.ucsb.edu/scicomp/GISSeminar/UseCases/MapProdWithRGraphics/OneMapProdWithRGraphics.h
tml

The second example demonstrates how to visualize a remote sensing band using grey levels and then
overlay various vector layers.

Tom Hengl
http://spatial-analyst.net 



-----Original Message-----
From: r-sig-geo-bounces at stat.math.ethz.ch [mailto:r-sig-geo-bounces at stat.math.ethz.ch] On Behalf Of
Roger Bivand
Sent: dinsdag 20 mei 2008 16:38
To: Monica Pisica
Cc: r-sig-geo at stat.math.ethz.ch
Subject: Re: [R-sig-Geo] displayDataset command
On Tue, 20 May 2008, Monica Pisica wrote:

            
If you look in the code, you'll see that axes are set to FALSE internally, 
and the drawing units are manipulated, so the graphics display does not 
know where they should go or which units they should be in. Since you can 
use output.dim= in readGDAL too, I'd go with

image(readGDAL(d1), col=grey.colors(20), axes=TRUE)

adding arguments to readGDAL() to decimate the image if there are many 
pixels. You don't get the color palette, though, but it could be retrieved 
if need be.

Roger