I am using the Rgooglemaps package in R.
I want to display text over plotted point using PlotOnStaticMap. There is also function named TextOnStaticMap for plotting text on specified coordinates.
But in the output map either text is printed or points are plotted, but i need both.
You need to feed in the
add=TRUEoption to the relevant function. If it’sFALSE(the default) you get a new plot.Note, you can just use
PlotOnStaticMapfor all of this with differentFUN(for exampletext,points,lines– the usual plotting functions):