For an interactive way, take a look at the code form 
raster::clickBbox(). You could probably adapt it. Using dev.new() could 
open a window with the zoomed region in it.

Etienne


Paul Hiemstra a écrit :
> Julius Tesoro wrote:
>> Hello
>>
>> I have three shapefiles loaded in R, say, a line shapefile of faults 
>> in New Zealand, the administrative districts of Fiordland (province 
>> of New Zealand) and New Zealand earthquakes. I want to zoom into a 
>> specific area so that I can select the earthquake points through 
>> select.spatial. How do I do zoom into this area? Is there other way 
>> where I can select a polygon by clicking and store it in  a vector?
> Hi,
>
> You can use the xlim and ylim parameters in spplot to zoom in.
>
> cheers,
> Paul
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to