Displaying 1 result from an estimated 1 matches for "number_of_mod".
2012 Sep 14
2
plotting points on a map, assigning vectors to values from dataset
...t is probably something
very easy and clear. I found lots of info about point, pch, bg etc., but not
of how to automatically assign values to points using a data file.
I am grateful for any comment!
Best wishes,
Neele
library(maps)
library(mapdata)
map = read.delim("C:/Users/Neele/Desktop/number_of_modals.txt", header=TRUE)
map$longitude=gsub(",",".",map$longitude)
map$longitude=as.numeric(as.character(map$longitude))
map$latitude=gsub(",",".",map$latitude)
map$latitude=as.numeric(as.character(map$latitude))
xlim = c(-85,-35)
ylim = c(-55,15)
pch =...