[R-sig-Geo] 3D bars on a Geographic Map?

2010-03-10 Thread Jim Burke
I have a group of geographical polygons in lat long (epsg:4326) coordinates. I would like to lay this polygon out at an angle. I would like to put two 3D bar charts at the midpoint or close inside each polygon. Can anyone provide an example of this? Or a web site with an example? Thanks, Jim

[R-sig-Geo] Problem with %IN% ==FALSE when data frames are equal

2009-07-13 Thread Jim Burke
28480 Levels: 481130001001000 481130001001001 481130001001002 ... 481130199004013 Thanks, Jim Burke PS My thanks to Gledson Luiz Picharski for his help initially with this "outside of %IN%" logic. ___ R-sig-Geo mailing list R-sig-Geo@s

Re: [R-sig-Geo] how to show polygons from SHP file in Google map?

2009-06-04 Thread Jim Burke
", package="maptools")[1], proj4string=CRS("+init=epsg:2166")) Error in getinfo.shape(filen) : Error opening SHP file Good luck, Jim Burke Jim Burke wrote: Jian, First realize where your R code was trying to find your shapefile. In your code below you are searching

Re: [R-sig-Geo] how to show polygons from SHP file in Google map?

2009-06-04 Thread Jim Burke
<- readShapePoly(system.file("nro2.shp", package="maptools")[1], proj4string=CRS("+init=epsg:2166")) Then in R, make sure R is pointing to the directory where your nro2.shp file exists. This can be done by selecting in R, File, Change Directory. Good luck, J

Re: [R-sig-Geo] How to negate %in%

2009-05-25 Thread Jim Burke
Hi All, Everyone's suggestions work. There are lots of roads to solutions in R. This is wonderful! It seems that Dan's and Pedro's solutions work faster for my largish 1,897 spatial polygon data frame. Thanks, Jim Burke All re

[R-sig-Geo] How to negate %in%

2009-05-25 Thread Jim Burke
t %in%? I am processing two different sets of polygons (A,B) in a loop. Operation is seeing in center points in polys B fall in A. I would like to remove the spatial polygons that I found (B) as I traverse the geographical area. Thanks, Jim Burke ___ R-sig-Geo m

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Jim Burke
GridDataFrame", CRSobj="CRS" x="SpatialLines", CRSobj="CRS" x="SpatialLinesDataFrame", CRSobj="CRS" x="SpatialPixelsDataFrame", CRSobj="CRS" x="SpatialPoints", CRSobj="CRS" x="SpatialPointsDataFrame", CRSobj=&

Re: [R-sig-Geo] How can I convert a "SpatialPolygons" object to a "polylist"?

2009-05-02 Thread Jim Burke
a KML file just fine for example. census_sp <- readShapePoly("HD_102_census_blocks_sp.shp", IDvar="BLKIDFP00", proj4string=CRS("+init=epsg:4326")) Thanks, Jim Burke Jim Burke wrote: How can I convert a "SpatialPolygons" object to a "polylist"

[R-sig-Geo] How can I convert a "SpatialPolygons" object to a "polylist"?

2009-05-02 Thread Jim Burke
orks according to the doc with polygon data sets. An example Map2Poly which works with "inout" lists itself as a class "polylist". Thanks, Jim Burke ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] Iterating and finding points in a spatial polygon - VERSION 2 Ignore earlier send!

2009-04-27 Thread Jim Burke
d. c_df output data frame example. BLK PCT "480019510006079",1811 "480019510006080",1811 "480019510006998",1811 "480019510006999",1811 "480039501003000",1120 "480039501003001",1120 "480039501003002&

[R-sig-Geo] Iterating and finding points in a spatial polygon

2009-04-27 Thread Jim Burke
"480039501003000",1120 "480039501003001",1120 "480039501003002",1120 "480039501003003",1120 Thanks, Jim Burke ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] Read shapefile with correct proj4string for the data

2009-04-24 Thread Jim Burke
ER["Central_Meridian",-98.5], PARAMETER["Standard_Parallel_1",32.1333333333], PARAMETER["Standard_Parallel_2",33.97], PARAMETER["Latitude_Of_Origin",31.67], UNIT["Foot_US",0.3048006096012192]] Thanks, Jim Burke ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] Lattice PDF two polygon maps per page - help

2009-04-16 Thread Jim Burke
_sp$PCT, cex=.02), as.table = TRUE) ) plot(vote_percent, position=c(0, 0.50, 1, 1 )) plot(total_votes, position=c(0, 0,1, .50), newpage = FALSE) dev.off() Good luck, Jim Burke Jim Burke wrote: I would like to print two polygon maps per PDF page. The following code prints each map on two PD

[R-sig-Geo] Lattice PDF two polygon maps per page - help

2009-04-16 Thread Jim Burke
;), colorkey=list(height=1.0, width=0.6), main = list(label="My second title",cex=.5), line=0, sp.layout = list("sp.text",coordinates(tx3_sp), as.character(tx3_sp$PCT, cex=.02), as.table = TRUE), newpage = FALSE ) dev.off() Thanks in advance for your sugg

Re: [R-sig-Geo] rasterize shape file and output as .img

2009-04-05 Thread Jim Burke
6286 8954 1931-40 347566 16595 160037 1750 2483 1941-50 621147 37028 354804 7367 14693 1951-60 1325727 153249 996944 14092 25467 1961-70 1123492 427642 1716374 28954 25215 1971-80 800368 1588178 1982735 80779 41254 1981-90 761550 2738157 3615225 176893 46237 1991-00 1359737 2795672 4486806 354939 9

Re: [R-sig-Geo] Error in multiple && !outer : invalid 'x' type in 'x && y'

2009-03-18 Thread Jim Burke
A partial answer. plot() these separately shows they plot at vastly different dimensions in order to fill the plot frame. I will try a merge in R and see what happens. Thanks, Jim Jim Burke wrote: Thanks in advance everyone. I need assistance resolving the above error. Trying to spplot join

[R-sig-Geo] Error in multiple && !outer : invalid 'x' type in 'x && y'

2009-03-18 Thread Jim Burke
ight=1.0, width=0.6), main = list(label="HD-108 - Barack Obama \n Votes by Precinct 11/04/08",cex=1), sub = list(label="by Jim Burke, j.bu...@earthlink.net",cex=.3), line=0, sp.layout = list("sp.text",coordinates(tx3_sp), as.character(tx

[R-sig-Geo] Merging SpatialPolygonsDataFrame and SpatialLinesDataFrame

2009-03-16 Thread Jim Burke
+datum=WGS84"), verbose=TRUE,repair=FALSE) Shapefile type: PolyLine, (3), # of Shapes: 29161 > class(tx3_sp) [1] "SpatialPolygonsDataFrame" attr(,"package") [1] "sp" > class(main_roads) [1] "SpatialLinesDataFrame" attr(,"package") [1] "sp&q

Re: [R-sig-Geo] shape file for Boston

2009-03-09 Thread Jim Burke
://mobilab.mit.edu/mashup/data_format.html MAS GIS http://www.mass.gov/mgis/ Good luck, Jim Burke Alina Sheyman wrote: > Does anyone know where I can find a shapefile with zipcodes for Boston > > [[alternative HTML version deleted]] > > ___ >

Re: [R-sig-Geo] Using the Z value for 3-D polygons?

2009-03-04 Thread Jim Burke
opened a bug with Thunderbird. Back to R, I really hope to get going on the problem in that note. I have spent some thought and time trying to get it fixed but no success. Thanks, Jim Burke Jim Burke wrote: Hi Everyone, QUESTION: How can I plot a spatial polygon (SpatialPolygonsDataFrame) as 3-d

Re: [R-sig-Geo] Using the Z value for 3-D polygons?

2009-03-04 Thread Jim Burke
onsDataFrame Coordinates: min max r1 2488376 2542115 r2 7003736 7046215 Is projected: TRUE proj4string : [+proj=aea +ellps=GRS80 +datum=WGS84 +lat_1=29.5 +lat_2=45.5 +towgs84=0,0,0] Data attributes: (I did not list these) III.

Re: [R-sig-Geo] mapping by zip codes

2009-03-03 Thread Jim Burke
plot(zip2_sp) invisible(text(getSpPPolygonsLabptSlots(zip2_sp), labels=as.character(zip2_sp$CUST_CNT), cex=0.4)) title("Wyoming Customer count", sub = "Something at the bottom of the graph", cex.main = 2, font.main= 4, col.main= "blue", cex.sub = 0.75, font.su

[R-sig-Geo] Using the Z value for 3-D polygons?

2009-03-02 Thread Jim Burke
he polygon $z value? Assuming lat and long are in the sp. http://r-spatial.sourceforge.net/gallery/#fig21.R Then if its not as straightforward as above, what would be the steps to convert a spatial polygon to points or something to graph that way?

Re: [R-sig-Geo] Intersect & Plot a Polygon and wkbLineString

2009-02-17 Thread Jim Burke
Then also I am looking forward to a good read of "Lattice Multivariate Visualization". Thanks, Jim Burke Roger Bivand wrote: On Mon, 16 Feb 2009, Jim Burke wrote: (Just stick to plain text, but don't use fonts or bold or stuff - keep it simple). I have a nice solid SpatialPol

Re: [R-sig-Geo] Intersect & Plot a Polygon and wkbLineString

2009-02-16 Thread Jim Burke
s. It does not behave like a Shapfile. >main_roads <-readOGR("main roads.shp", layer = "main roads") OGR data source with driver: ESRI Shapefile Source: "main roads.shp", layer: "main roads" with 29161 rows and 33 columns Feature type: wkbL

[R-sig-Geo] Intersect & Plot a Polygon and wkbLineString

2009-02-16 Thread Jim Burke
ata source with driver: ESRI Shapefile Source: "main roads.shp", layer: "main roads" with 29161 rows and 33 columns Feature type: wkbLineString with 2 dimensions Thanks, Jim Burke ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] SpatialPolygons decomposition...

2009-02-13 Thread Jim Burke
#shows representation of geometries too. names(tx3_sp) #nice but lengthy Let us know if this helps you any. Good luck, Jim Burke Peter S. Hayes wrote: Hi All, I'm trying to teach a spatial analysis class using R as a means of learning some details..

Re: [R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE (AND SP???)

2009-01-29 Thread Jim Burke
] + } + } > save(wrld_simpl,'SIMPLEMAP.Rdata') Error in save(wrld_simpl, "SIMPLEMAP.Rdata") : object ‘SIMPLEMAP.Rdata’ not found Thanks, Jim Burke Jim Burke wrote: Thanks Hans, Its been a day or so since I have used R graphics. Now sp seems to lack grid. I cannot run

[R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE (AND SP???)

2009-01-29 Thread Jim Burke
e 'application/zip' length 845890 bytes (826 Kb) opened URL downloaded 826 Kb package 'sp' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents and Settings\Jim Burke\Local Settings\Temp\RtmpqCMAZS\downloaded_packages updating HTML pac