Re: [R-sig-Geo] function for bearing

2006-03-09 Thread Sebastian Luque
Thank you all for your suggestions and reference (very interesting indeed). Cheers, -- Sebastian P. Luque ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] function for bearing

2006-03-09 Thread Sebastian Luque
Hello, I have searched the archives and other sources, but cannot find an R function that would calculate the bearing of a pair of points (lat, lon). It wouldn't be difficult to write such a function, but has this already been done in a package? Thanks in advance, -- Sebastian P. Luque __

Re: [R-sig-Geo] convertion to polygon for coloring, shading

2005-10-01 Thread Sebastian Luque
Roger Bivand <[EMAIL PROTECTED]> wrote: [...] > Try: >> getinfo.shape("your_file.shp") Ok, I got: --8<---cut here---start->8--- R> getinfo.shape("general01.shp") Shapefile type: PolyLine, (3), # of Shapes: 11343 R> maptools() maptools, version 0.5-2, 2005-09

[R-sig-Geo] convertion to polygon for coloring, shading (was: clipping in maptools)

2005-09-30 Thread Sebastian Luque
On Fri, 30 Sep 2005 23:38:39 +0200 (CEST), Roger Bivand <[EMAIL PROTECTED]> wrote: [...] > Using the plot method for sp class SpatialPolygons, the xlim= and ylim= > arguments do what you want. They do in plot.polylist() too, but in > plot.Map() you get warnings when the arguments are passed to pl

[R-sig-Geo] clipping in maptools

2005-09-30 Thread Sebastian Luque
Hi, I'm using package maptools for reading and plotting shape files, and am looking for a way to "clip" the shapes for plotting only. More precisely, I need to plot only a certain region of the original shape file by providing the N, S, E, and W latitudes and longitudes that bound the region. If