sl.plot.elem | R Documentation |
Plot the elements of a triangular grid. The elements can be filled and/or their edges can be drawn. A special feature is colouring edges according to their length (resolution).
sl.plot.elem(plot.init.res, lon, lat, elem, border = TRUE, col.border = "black", length.corr = "none", border.colbar = sl.colbar.redgreyblue_256, border.colbar.breaks = NA, border.colbar.breaks.log = FALSE, fill = TRUE, col.fill = "grey", cell_area = NA, lwd = 1, lty = 1)
plot.init.res |
a spheRlab plot specifics list as returned by |
lon |
a vector of length |
lat |
a vector of length |
elem |
an |
border |
a logical value indicating whether or not to plot element edges. |
col.border |
the colour of the element edges. |
length.corr |
one of |
border.colbar |
a spheRlab colourbar (as returned by |
border.colbar.breaks |
a numeric vector of length |
border.colbar.breaks.log |
a logical value indicating whether colourbar breaks are to be placed logarithmically (only used if |
fill |
a logical value indicating whether or not to fill elements. |
col.fill |
the fill colour (only used if |
cell_area |
NOT YET USED. Could be specified to fill with colours according to cell areas. However, this could also be done with |
lwd |
the line width of the borders (edges). |
lty |
the line type of the borders (edges). |
For element filling (fill=TRUE
), sl.plot.polygon
is used. For edges (border=TRUE
), sl.plot.lines
is used; with col.border="length"
, sl.gc.dist
and sl.num2colbar
are used.
If a colourbar is used, it will be returned for further usage (e.g., for plotting of the colourbar).
Maybe functionality should be added to fill elements with colours according to resolution (not just edges as already implemented); however, this could also be done with sl.plot.field
?
Helge Goessling
sl.plot.field
, sl.plot.field.elem
, sl.plot.landsea
## To be provided ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.