search for: us_counti

Displaying 2 results from an estimated 2 matches for "us_counti".

Did you mean: uc_count
2011 Apr 03
0
Plotting data on a US County Map
...Y_FIPS number 1 US001 2 2 US002 8 3 US003 3 4 US004 5 5 US005 6 6 US006 7 7 US007 9 8 US008 9 9 US009 10 10 US010 11 11 US011 13 12 US012 15"),head=TRUE,stringsAsFactors=FALSE)) library(maptools) library(ggplot2) library(gpclib) gpclibPermit() setwd("C:/Documents") us_counties.shp <- readShapeSpatial("uscounties.shp") us_counties.shp.p <- fortify.SpatialPolygonsDataFrame(us_counties.shp, region="CNTY_FIPS") us <- merge(us_counties.shp.p, us_counties.shp, by.x="id", by.y="CNTY_FIPS") p <- ggplot(data=us, aes(x=long,...
2006 May 21
3
has_many :through with a polymorphic join
Hi, Four tables: users, user_counties, uk_counties and us_counties. Each user has many counties, and each county has many users, so I decided to make user_counties a polymorph, so it can have counties from different countries (each country requires a completely different set of tables with a completely different set of properties, that''s why there'...