get.start.pts: Get starting points Get starting points for simulations based...

Description Usage Arguments Details Value Examples

View source: R/get.start.pts.r

Description

Get starting points Get starting points for simulations based on distribution of observed locations for a given month.

Usage

1
2
3
4
5
6
7
get.start.pts(
  dat,
  n = 100,
  months = 1:12,
  mask = rmask,
  posnames = c("coords.x1", "coords.x2")
)

Arguments

dat

input data. see data(nsdata)

n

number of starting points

posnames

names of the longitude and latitude columns in the data frame

Details

The number of starting points is the number of tracks desired for simulation in a given month

Value

a list of starting points

Examples

1
2
3
4
5
library(fields)
data(nsfish)
spts = get.start.pts(nsfish)
world(xlim = c(-100, 0), ylim = c(20, 50))
lapply(spts, points, pch = 19, cex = .4)

galuardi/SatTagSim documentation built on Nov. 15, 2020, 6:28 a.m.