nlaMap: Create map of NLA samples

Description Usage Arguments Examples

View source: R/nlaMap.R

Description

Function to generate Map 1 in hkm2014ESA poster

Usage

1
nlaMap(states, lakes, cats = F, myColor = 1:3, catColor = NULL)

Arguments

states

data for states, as data.frame

lakes

point locations for lake samples as data.frame

cats

plot ts categories?

myColor

vector of length 3 with colors for fill, lines, and points in that order

Examples

1
2
3
4
5
6
7
8
9
state<-map_data('state')
lakes_alb<-data.frame(ltmData[["AlbersX"]],ltmData[["AlbersY"]])
p4s<-"+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" 
ll<-"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" 
lakes_alb_sp<-SpatialPoints(coordinates(lakes_alb),proj4string=CRS(p4s))
lakes_dd<-spTransform(lakes_alb_sp,CRS=CRS(ll))
lakes_dd<-data.frame(coordinates(lakes_dd))
names(lakes_dd)<-c("long","lat")
nlaMap(state,lakes_dd)

USEPA/LakeTrophicModelling documentation built on Oct. 15, 2020, 4:13 p.m.