USDmapCount {BSTZINB}R Documentation

Draw spatial maps of various quantities over regions in the US

Description

Creates a map of any given quantity (at a selected time or averaged over time) for regions in the US specified by state and county

Usage

USDmapCount(state.sel,dat,scol,tcol=NULL,tsel=NULL,cname,uplim=NULL)

Arguments

state.sel

character vector giving the selected states

dat

data frame having named components: y - the necessary quantity (numeric), sid - the region indices, tid - the time indices

scol

column index of the spatial regions

tcol

(optional) column index of the time points

tsel

(optional) selected time point

cname

character vector of county names, must match those in USAcities

uplim

(optional) numeric, upper limit for the given quantity

Value

spatial map of the required quantity over the specified region

Examples

data(simdat)
data(county.adjacency)
data(USAcities)
IAcities <- subset(USAcities,state_id=="IA")
countyname <- unique(IAcities$county_name)
USDmapCount(state.sel="IA",dat=simdat,scol=1,tcol=2,tsel=150,cname=countyname)


[Package BSTZINB version 1.0.1 Index]