Open gspellman opened 3 months ago
The function getMap() is part of the R package Rworldmap, so it seems that for some reason this package either has not been installed yet or alternatively not loaded yet.
library(rworldmap)
install.packages("rworldmap")
Hope this solves the problem!
I am trying to use the map function and get the following error. I have Rworldmap installed which uses the function getMap. I would appreciate any help
Plotting location of samples using R package Rworldmap... Flags 'mygeodf' and 'mygeofile' set to NULL (default). Assuming to find within inds dataframe columns called 'longitude' and 'latitude'. Matrix with geographical coordinates has been stored under the name 'mysambar$geocoord'. Error in getMap(resolution = "low") : could not find function "getMap"