###################################################
### code chunk number 6: Cs04_fig-code
###################################################
# load the map package; you have to install it first
library(maps)
# Read in our noisy data (no missing values)
pdat <- loggerheadNoisy # for plotting
turtlename <- "BigMama"
theTurtle <- which(loggerheadNoisy$turtle == turtlename)
par(mai = c(0, 0, 0, 0), mfrow = c(1, 1))
map("state",
region = c(
"florida", "georgia", "south carolina",
"north carolina", "virginia", "delaware", "new jersey", "maryland"
),
xlim = c(-85, -70)
)
points(pdat$lon[theTurtle], pdat$lat[theTurtle],
col = "blue", pch = 21, cex = 0.7
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.