[R-sig-Geo] circular window for spatial statistics (spatstat package)

2007-03-13 Thread Michael Friendly
data and the window. thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto,

Re: [R-sig-Geo] [circular window for spatstat]

2007-03-15 Thread Michael Friendly
Thanks very much, Adrian. -Michael Adrian Baddeley wrote: > On Tue, 13 Mar 2007, Michael Friendly wrote: > > >>I've read the documentation, but can't find an example of how >>to specify a circular window for the ppp object that would contain the >>dat

[R-sig-Geo] merging a data.frame with a map

2008-08-20 Thread Michael Friendly
ng.Units M1B 496 M1C NA M1E 1226 M1G 521 M1H 149 M1J 173 > So, I now want to merge torontoR with crimeTO using FSA (or rownames(crimeTO)) as the area ID and write new files so I can avoid doi

[R-sig-Geo] spplot: labels on maps / variables on different scales

2008-08-26 Thread Michael Friendly
0 Median :28.00 Median :16.00 Median : 685 Mean :20.05 Mean :5.412 Mean :31.31 Mean :16.16 Mean : 995 3rd Qu.:25.00 3rd Qu.:7.000 3rd Qu.:45.00 3rd Qu.:19.00 3rd Qu.:1276 Max. :41.00 Max. :9.000 Max. :64.00 Max. :30.00 Max. :9289 NA's :

Re: [R-sig-Geo] spplot: labels on maps / variables on different scales

2008-08-26 Thread Michael Friendly
Edzer Pebesma wrote: Michael Friendly wrote: Two short questions about working with maps: 1. I'm reading a shapefile with character labels for the regions (FSA). I can add the labels using plot(), but when I try the same thing using spplot(), the labels are in the wrong positions --

[R-sig-Geo] overlay 1D graph on a map or map image: van Langren data

2008-12-03 Thread Michael Friendly
x pixel coordinates of Toledo and Rome in the image, measured from the *top left* corner as (0,0) toledo.map <- c(130, 119) rome.map <-(505, 59) Here's where I'm stumped. How can I recreate a version of van Langren's graph shown on top of either the gi

Re: [R-sig-Geo] overlay 1D graph on a map or map image: van Langren data

2008-12-03 Thread Michael Friendly
1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] splines grid stats graphics grDevices utils datasets methods [9] base other attached packages: [1] ggplot2_0.7 MASS_7.2-44RColorBrewer_1.0-2 proto_0.3-8 [5] reshape_0.8.2

[R-sig-Geo] Guerry data: making a package

2009-10-17 Thread Michael Friendly
ompt() just dumps the entire results of str(gfrance85); I can of course edit out the @ polygons list. Is this the recommended way to include such objects in packages? Thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University

[R-sig-Geo] John Snow's cholera data/map: a more sp-ish way?

2009-10-30 Thread Michael Friendly
ish way to organize the data and map info and make these and other plots. More generally, I would welcome any other contributions to this project. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736

Re: [R-sig-Geo] Guerry data: making a package

2009-10-30 Thread Michael Friendly
make this more spatial-friendly in a package? I don't know what a lot of that stuff means, but if I'm creating a package, I'd like it to be minimally sufficient for others to use in different contexts. -Michael Roger Bivand wrote: On Sat, 17 Oct 2009, Michael Friendly wrote: Hi

Re: [R-sig-Geo] John Snow's cholera data/map: a more sp-ish way?

2009-10-30 Thread Michael Friendly
'blue') For polygons, I think that it should be a little bit more complicated.. but I have no time today to have a look at it. Is it correct Roger? Cheers. Roger Bivand wrote: On Fri, 30 Oct 2009, Michael Friendly wrote: Hi In a new package, HistData, on R-Forge, I have a collecti

[R-sig-Geo] thinning a SpatialPolygonsDataFrame

2009-11-18 Thread Michael Friendly
hanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA __

Re: [R-sig-Geo] thinning a SpatialPolygonsDataFrame

2009-11-18 Thread Michael Friendly
rlapping polygons, interpolygon slivers, etc.). Roger HTH David Michael Friendly a écrit : The Guerry package contains two maps of france (gfrance, gfrance85) which are quite detailed and large in size (~900K). In writing a vignette for the package, there are quite a few figures that use the map

Re: [R-sig-Geo] thinning a SpatialPolygonsDataFrame

2009-11-19 Thread Michael Friendly
lygons object. The CRS also needs copying across. The objects are rebuilt to correct areas, centroids, plot orders, and the bounding box, all of which may change. For figures, the companion thread on R-help is relevant, PDF output for choropleth maps is often a good deal larger in file size

[R-sig-Geo] change in sp::Lines() breaks example in my package

2010-07-27 Thread Michael Friendly
gt; sessionInfo() R version 2.11.1 (2010-05-31) i386-pc-mingw32 locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base

Re: [R-sig-Geo] change in sp::Lines() breaks example in my package

2010-07-28 Thread Michael Friendly
<- i+1 Lines(Line(x), as.character(i)) }) rm(i) Snow.streets.sp <- SpatialLines(Lsl1) which now lets you index Snow.streets.sp, as in Snow.streets.sp[100] # or Snow.streets.sp["100"] BTW it's the first time I advice someone to use <<- and I'd be hap