Learn R Programming

SDraw (version 2.1.13)

WA: SpatialPolygonsDataFrame for the state of Washington, USA

Description

A SpatialPolygonsDataFrame [package "sp"] containing polygons that comprise the state of Washington.

Usage

data("WA")

Arguments

Format

A SpatialPolygonsDataFrame containing 50 polygons whose union outline boundaries of the state of Washington. Source of the Shapefile from which these polygons were queried is http://nationalmap.gov/small_scale/atlasftp.html (file 'statesp020.tar.gz').

Attributes of the polygons are:

  1. AREA = Size of the polygon in square kilometers.

  2. PERIMETER = The perimeter of polygon in kilometers.

  3. STATESP020 = Internal feature number

  4. STATE = The name of the State or State equivalent.

  5. STATE_FIPS = The 2-digit FIPS code of the State or State equivalent.

  6. ORDER_ADM = An ordinal value indicating the State's order of admission to the United States.

  7. MONTH_ADM = The month when the State was admitted to the United States.

  8. DAY_ADM = The day when the State was admitted to the United States.

  9. YEAR_ADM = The year when the State was admitted to the United States.

  10. LAND_TYPE = Type of the polygon. Types are "ISLAND", "MAINLAND", "OCEAN"

The proj4string is +proj=utm +zone=10 +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0, meaning among other things that the coordinates are projected zone 10 UTM's in meters. The rectangular bounding box of all polygons is

min max
x 369439 971361.3
y 5044642 5444677.5

Examples

Run this code
# NOT RUN {
plot(WA[WA$LAND_TYPE == "MAINLAND",], col="red")
plot(WA[WA$LAND_TYPE == "ISLAND",], col="blue",add=TRUE)
plot(WA[WA$LAND_TYPE == "OCEAN",], col="turquoise",add=TRUE)
# }

Run the code above in your browser using DataLab