Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is higher resolution coastline data readily available for R

Tags:

r

ggmap

I am hoping to create a map for a relatively small area of the coast (~ 3 degrees in lon and lat extension). Is anyone aware of readily available data for R at a higher resolution than that provided by the high resolution data in the mapdata package? Or is anyone aware of source and method for importing this data?

like image 490
Marc in the box Avatar asked Apr 26 '12 07:04

Marc in the box


1 Answers

I don't know about mapdata, but google maps and openstreetmaps can give small areas. The ggmap package makes the getting and rendering of the maps reasonably straightforward. The code below gives waterways of the Gogodala region in Papua New Guinea's Western Province. Is the resulution high enough?

library(ggmap)
pngMAP_df = get_map(location = c(142.5, -8.10, 143.1, -7.9), source = "osm", zoom = 12)
ggmap(pngMAP_df)
like image 182
Sandy Muspratt Avatar answered Oct 11 '22 23:10

Sandy Muspratt