View source: R/get.start.pts.r
get.start.pts | R Documentation |
Get starting points Get starting points for simulations based on distribution of observed locations for a given month.
get.start.pts(
dat,
n = 100,
months = 1:12,
mask = rmask,
posnames = c("coords.x1", "coords.x2")
)
dat |
input data. see data(nsdata) |
n |
number of starting points |
posnames |
names of the longitude and latitude columns in the data frame |
The number of starting points is the number of tracks desired for simulation in a given month
a list of starting points
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.