I am trying to use wrld_simpl from maptools package in order to plot a piece of world map with a longitude/latitude grid.
For example, I have a netCDF file with longitude and latitude, I create a matrix with all the points I can have on the grid:
lat <- get.var.ncdf(nc,"lat")
long <- get.var.ncdf(nc,"lon")
pts <- SpatialPoints(expand.grid(long,lat), CRS(proj4string(wrld_simpl)))
Now I want to plot the countries whose coordinates are on my grid.
I don't know how to do with wrld_simpl attributes!