I'm using the package RgoogleMaps
for R. I've plotted my map, and i need to add points with points
command, but it doesn't work. Here's my code:
PlotOnStaticMap(Map, add = FALSE, TrueProj=F, FUN = points) # plot the background
# add external boundary
for (nb in 1:100)
{
points(x[nb],y[nb],type="l",lwd=3)
}
How could I fix it?
I think this is what you're looking for:
See the syntax for
points()
withinPlotOnStaticMap
?