powered by
This function generate a grid of points over a US state with given increment size or resolution.
genUSStateGrid(state, incr = NULL, resolution = NULL)
A data.frame:
longitude of the grid point.
latitude of the grid point.
the id number of the county in which the grid point is located.
the name of the county in which the grid point is located.
the name of a US state.
a numeric vector of length 2 specifying the increment in longitude and latitude.
a numeric vector of length 2 specifying the size of the grid in longitude and latitude.
Jun Yan jun.yan@uconn.edu
genUSStateSites
mygrid <- genUSStateGrid('iowa', resolution=c(8, 4)) map('state', 'iowa') points(mygrid)
Run the code above in your browser using DataLab