Skip to content

plotting points over a map using R

1 message · Jim Lemon

#
On 01/31/2014 08:58 PM, ??? wrote:
Hi Dli,
Your question involves two things, the placement of the points
and their color. The coordinate system of maps is almost always
geographic, in decimal degrees. The x values are the longitudes
measured from the prime meridian that passes through Greenwich,
England. The y values are the latitudes that are measured from
the equator.

To get the colors for the points, if you have some value like
average temperature for the points, you can convert the numbers
into colors using functions like color.scale in the plotrix
package. The resulting vector or matrix of colors can then be
passed to the "points" function.

Jim