| as.coastline {oce} | R Documentation |
Coerces a sequence of latitudes and longitudes into a coastline dataset.
as.coastline(latitude, longitude)
latitude |
the latitude in decimal degrees, positive north of the equator. |
longitude |
the longitude in decimal degrees, positive north of Greenwich. |
This may be used when read.coastline cannot read a file, or when
the data have been manipulated.
An object of class "coastline" (for details, see read.coastline).
Dan Kelley
The NOAA site http://www.ngdc.noaa.gov/mgg/shorelines/shorelines.html is a good source for coastline data files.
You may also use read.coastline to read a coastline file.
Plotting is typically done with plot.coastline, although
it is sufficient to just use plot for coastline objects.
## Not run:
d<-read.table("bbasin.dat",header=FALSE) # dataset not provided with oce
HH <-c(1645:2105) # main outline of Halifax Harbour
GI <-c(4866:4885) # George's Island
coastline.hal <- as.coastline(latitude[c(HH,GI)],longitude[c(HH,GI)]-360)
## End(Not run)