I have a map
library(maps)
library(mapdata)
map('worldHires', c('Ireland', 'UK'), xlim=c(-16,-5.5), ylim=c(51,56))
And I have some tracking data that I can plot according to the identify of the animal ID
lat <- c(-11.385668, -11.389855,-12.142785,-11.94954,-11.17716, -10.456175)
lon <- c(53.543667, 53.561507, 52.687934, 52.855068, 52.803291, 52.858737)
ID <- c("A","A","B","B","C","C")
df = data.frame(lat, lon, ID);df
op <- par(mfrow = c(1,3))
sapply(split(df[1:2], df$ID), plot)
I'd like to be able to set up a function so that the original map is set down as a base layer for each of the 3 individual tracks.