sl.plot.landsea | R Documentation |
Plot a land-sea mask based on an unstructured ocean grid.
sl.plot.landsea(plot.init.res, lon, lat, elem, col.land = "grey", col.sea = "white", lwd = 1, lty = 1, polar.bg.res = 1)
plot.init.res |
a spheRlab plot specifics list as returned by |
lon |
a vector of length |
lat |
a vector of length |
elem |
an |
col.land |
the land colour. (Will be drawn at the beginning into the whole domain.) |
col.sea |
the ocean colour. (Each ocean element will be filled with this colour). |
lwd |
CURRENTLY NOT USED. Will be needed once coastlines can be drawn with this function. |
lty |
CURRENTLY NOT USED. Will be needed once coastlines can be drawn with this function. |
polar.bg.res |
a scalar specifying the resolution (in degrees) at which the background triangles are drawn. |
First the whole plot domain is filled with col.land
. For a polar projection, this is achieved with triangles that have one vertex at the projection North Pole and two points on the plot boundary, separated by polar.bg.res
degrees. Second all visible ocean elements (triangles) are added.
1) This function could be amended slightly to enable drawing just the coastline of an ocean grid.
2) For more sophisticated plotting of more realistic coastlines and other geographical standard datasets, see sl.plot.naturalearth
.
Helge Goessling
sl.plot.elem
, sl.plot.naturalearth
## To be provided ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.