Package: |
micromapST |
Type: |
Package |
Version: |
1.0.5 |
Date: |
2015-01-21 |
License: |
GPL-2 |
LazyLoad: |
yes |
The U.S. map of states is a generalized boundary map, based on Mark Monmonier's visibility map. This map is simplified to maximize the color areas shown for each state and to minimize the length of the boundary lines while still allowing identification of each state.
The sort order of the rows (states) is based one of the statistical data columns as specified by the user. Correlation between multiple statistical columns can be judged visually by comparing the pattern of one column's values from top to bottom of the page with that of the sorted column. Spatial clusters of states with similar values of the sorting variable can be identified on the 10 small maps that are linked to the graphics by color.
A state linked micromap plot is generated by 4 steps:
# load the package
library(micromapST)
# read, create or collect your data into a data.frame = stateFrame
stateFrame <- data.frame(a row per state and DC (51), column per variable to be ploted, rownames set to the state names or abbreviations)
# now set up a data frame that defines the labels, # panel and page layout
panelDesc<-data.frame(...)
# specify the data source, panelDesc, sorting variable and # order, and call the stateMicromap function
micromapST(stateFrame,panelDesc, title=c("title1","title2"), details=list(options=values))
The package contains a set of examples of how to produce linked state micromaps. The datasets used in each example are provided to help you learn how to use micromapST.