download.coastline(resolution, item = "coastline", destdir = ".", destfile, server = "naturalearth", debug = getOption("oceDebug"))
"10m"
(for 1:10M resolution, the most detailed),
"50m"
(for 1:50M resolution)
and "110m"
(for 1:110M resolution). If resolution
is not supplied,
"50m"
will be used."coastline"
, "land"
, "ocean"
,
"rivers_lakes_centerlines"
, or "lakes"
, but the NaturalEarth
server has other types, and advanced users can discover their names by inspecting
the URLs of links on the NaturalEarth site, and use them for item
.
If item
is not supplied, it defaults to "coastline"
."."
is used, i.e. the data file
is stored in the present working directory."naturalearth"
,
which is the default if server
is not supplied.oce
functions. Generally, setting debug=0
turns off the printing, while higher values suggest that more information
be printed.download.*
functions are subject to change through the
autumn of 2016. The plan is to create individual functions
as needs arise in everyday work, thereby discovering patterns of
arguments that might make sense more generally. Therefore, it is likely
that argument order (and even name) may change up until approximately
December 2016. Users are advised to refer to arguments by name,
i.e. not to rely on their order, and they are asked for patience,
because argument names and defaults may vary through the early development.download.file
.Other functions that download files: download.amsr
,
download.topo
Other things related to coastline
data: [[,coastline-method
,
[[<-,coastline-method
,
as.coastline
,
coastline-class
,
coastlineBest
, coastlineCut
,
coastlineWorld
,
plot,coastline-method
,
read.coastline.openstreetmap
,
read.coastline.shapefile
,
subset,coastline-method
,
summary,coastline-method
## Not run:
# library(oce)
# # User must create directory ~/data/coastline first.
# # As of September 2016, the downloaded file, named
# # "ne_50m_coastline.zip", occupies 443K bytes.
# filename <- download.coastline(destdir="~/data/coastline")
# coastline <- read.coastline(filename)
# plot(coastline)
# ## End(Not run)
Run the code above in your browser using DataLab