I am plotting trajectories (latitude vs longitude) with R's scatterPlot from openair package. When grouping the trajectories with the 'group' option, the last group doesn't get plotted. Here is a sample code:
df = data.frame(name = c(rep('C1',10),rep('C2',10),rep('C3',10),rep('C4',10)),
lat = seq(1,100,2.5),
lon = seq(101,200,2.5))
scatterPlot(df ,x = "lon", y = "lat", group = "name",map = TRUE )
scatterPlot(df ,x = "lon", y = "lat")
Also, I get an error when trying to plot a map in the background: "Error using packet 1. argument i of length zero"
Thanks Ilik