Coerces a sequence of longitudes and latitudes into a coastline dataset. This may be used when read.coastline() cannot read a file, or when the data have been manipulated.

as.coastline(longitude, latitude, fillable = FALSE)



the longitude in decimal degrees, positive east of Greenwich, or a data frame with columns named latitude and longitude, in which case these values are extracted from the data frame and the second argument is ignored.


the latitude in decimal degrees, positive north of the Equator.


boolean indicating whether the coastline can be drawn as a filled polygon.


a coastline object.

See also