Description Usage Arguments Details Author(s) See Also Examples

View source: R/sl.plot.polygon.R

Plot a polygon into a spheRlab plot.

1 |

`plot.init.res` |
a spheRlab plot specifics list as returned by |

`lon` |
a vector of length |

`lat` |
a vector of length |

`fill` |
a logical value indicating whether or not to fill the polygon. |

`col.fill` |
the fill colour. Used only if |

`border` |
a logical value indicating whether or not to draw the polygon edges. |

`col.border` |
the border (edge) line colour. Used only if |

`border.lwd` |
a scalar specifying the border (edge) line width. Used only if |

`border.lty` |
the border (edge) line type. Used only if |

`ignore.visibility` |
a logical value indicating whether or not the polygon shall be attempted to be drawn completely even if it's classified partly or fully invisible, that is, outside the plot domain. |

`remove.identical.neighbours` |
a logical value indicating whether or not identical neighbours shall be removed from the polygon vertices before plotting. |

`refine.boundary` |
a logical value indicating whether or not to refine truncated polygons along curved plot boundaries (in polar projection). |

`refine.boundary.precision` |
a scalar specifying the precision (in degrees) for the refinement of truncated polygons along curved plot boundaries (in polar projection). |

This is one of the lowest-level plotting functions of spheRlab. First the visibility of the polygon vertices is checked, which depends on the projection and plot domain boundaries. A polygon for which all vertices are invisible is not drawn. (This implies that a polygon is not drawn if all vertices are invisible, even if some other part of the polygon is visible.) Then for two partly visible edges an intersection point with the boundary is computed and the two intersection points are added to the polygon, replacing the (one or more) invisible vertices. The resulting polygon is then drawn, if applicable optionally after refinement of the truncation edge (see argument 'refine.boundary').

Helge Goessling

1 | ```
## To be provided ...
``` |

helgegoessling/spheRlab documentation built on Sept. 29, 2018, 12:09 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.