[R-sig-Geo] spplot.points not recognizing logical variables

2009-02-18 Thread David Rossiter
As of the last time I compiled code like the following (17-June-2008), it displayed an indicator map: require(sp) data(meuse) # indicator: which observations have high Zn content? meuse$ind <- (meuse$zinc > 300) table(meuse$ind) coordinates(meuse) <- ~x +y class(meuse) # SpatialPointsDataFrame sp

Re: [R-sig-Geo] R-sig-Geo Digest, Vol 66, Issue 18

2009-02-18 Thread Adrian.Baddeley
Jim Burke asked how to compute the intersection between a set of lines (roads) and a set of polygons (regions). This can be done using the spatstat package. 1. convert the polygons from the class SpatialPolygons (in the sp package) to the class owin (in the spatstat package). See

Re: [R-sig-Geo] Timezone boundaries (for adding to world map)?

2009-02-18 Thread Greg Snow
There is a shapefile (works well with maptools and sp packages) with a world map and time zone information at: http://openmap.bbn.com/data/shape/timezone/ It has the info needed to color the countries or parts of countries based on time zone, but does not have polygons for time zone stripes over

[R-sig-Geo] Timezone boundaries (for adding to world map)?

2009-02-18 Thread Martin Maechler
Dear R - Mapping specialists, for a prospective publication on using date/times etc in R, we are looking for a way to draw a world map additionally with the "timezone stripes". Thanks to Roger Bivand, it was easy to get to the world map: I've used this http://spatial.nhh.no/R/etc/world_map_int

Re: [R-sig-Geo] Rgshhs shift=true question

2009-02-18 Thread Roger Bivand
On Wed, 18 Feb 2009, Hans-Jörg Bibiko wrote: Hi, I'm using the river database 'wdb_rivers_l.b' downloaded from ftp://ftp.soest.hawaii.edu/pwessel/gshhs/gshhs_1.11.zip. If I do this: rivers_low <- Rgshhs("wdb_rivers_l.b") I get a list of rivers as SpatialLines with bbox(rivers_low[[1]]

Re: [R-sig-Geo] Shapefiles

2009-02-18 Thread Virgilio Gomez Rubio
Marius, I've got a shapefile of Sweden at the municipality level from Statistics Sweden some years ago. I am not sure about all the other Nordic countries but you may search in their websites or drop them an e-mail if you do not find what you are looking for. That is what I did. Best, Virgilio

[R-sig-Geo] Shapefiles

2009-02-18 Thread Marius Fredheim
Dear all, Do you have any suggestions on where it is best to search for Shapefiles for the Nordic countries? Preferably on a postcode level, but anything will do. Thanks in advance. Regards, Marius ___ R-sig-Geo mailing list R-sig-Geo@stat.math.

[R-sig-Geo] Rgshhs shift=true question

2009-02-18 Thread Hans-Jörg Bibiko
Hi, I'm using the river database 'wdb_rivers_l.b' downloaded from ftp://ftp.soest.hawaii.edu/pwessel/gshhs/gshhs_1.11.zip . If I do this: > rivers_low <- Rgshhs("wdb_rivers_l.b") I get a list of rivers as SpatialLines with > bbox(rivers_low[[1]]) min max r1 0.000278 359.9