[R-sig-Geo] Zooming into a specific area
Paul Hiemstra
p.hiemstra at geo.uu.nl
Thu Sep 24 10:22:13 CEST 2009
Hmmm,
Could you provide a reproducible example to illustrate your problem with
xlim and ylim. This works for me:
library(sp)
data(meuse)
coordinates(meuse) = ~x+y
spplot(meuse, "dist",
xlim = c(179000, 180000),
ylim = c(330000, 331000))
cheers,
Paul
Julius Tesoro wrote:
> Hi,
>
> I tried it but it did not zoom into the area but just blocked out the areas around xlim and ylim.
>
> Are there other ways?
>
>
>
> --- On Wed, 9/23/09, Paul Hiemstra <p.hiemstra at geo.uu.nl> wrote:
>
>
>> From: Paul Hiemstra <p.hiemstra at geo.uu.nl>
>> Subject: Re: [R-sig-Geo] Zooming into a specific area
>> To: "Julius Tesoro" <jutesoro at yahoo.com>
>> Cc: r-sig-geo at stat.math.ethz.ch
>> Date: Wednesday, September 23, 2009, 4:22 PM
>> 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?
>>
>>> _______________________________________________
>>> R-sig-Geo mailing list
>>> R-sig-Geo at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>
>>>
>> Hi,
>>
>> You can use the xlim and ylim parameters in spplot to zoom
>> in.
>>
>> cheers,
>> Paul
>>
>> --
>> Drs. Paul Hiemstra
>> Department of Physical Geography
>> Faculty of Geosciences
>> University of Utrecht
>> Heidelberglaan 2
>> P.O. Box 80.115
>> 3508 TC Utrecht
>> Phone: +3130 274 3113 Mon-Tue
>> Phone: +3130 253 5773 Wed-Fri
>> http://intamap.geo.uu.nl/~paul
>>
>>
>>
>
>
>
>
>
--
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone: +3130 274 3113 Mon-Tue
Phone: +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul
More information about the R-sig-Geo
mailing list