Sha256: 6390b0d7a3b57802a3949dd18cb010dc73b3a391a39956c6ea4d775522253e78

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 Bytes

Contents

usamap
======

Create a colorized svg map of the USA using ruby. Plot ranges and colors using FIPS coordinates for US counties.

## Installation

~~~.ruby
  gem install usamap
~~~


## Example Usage

~~~.ruby
require 'usamap'

colors = {}
colors[0..5] = '#CD5C5C'
colors[6..100] = 'blue'

stats = {}
stats['35001'] = 3  # 35001 is FIPS for Bernalillo, NM
stats['35049'] = 99 # 35049 is FIPS for Santa Fe, NM

my_map = USAmap.new(stats, colors)
puts my_map
~~~


## Example Output


![alt text](https://raw.github.com/wiki/salemine/usamap/nm_counties.png "Sample Map")







## Credits/Resources
SVG Map:
http://commons.wikimedia.org/wiki/File:Usa_counties_large.svg


FIPS Codes:
http://en.wikipedia.org/wiki/FIPS_county_code


## Inspiration
http://flowingdata.com/2009/11/12/how-to-make-a-us-county-thematic-map-using-free-tools/



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
usamap-0.0.2 README.md