Description Usage Arguments Value Note Author(s) Examples

View source: R/OptRegionTps.R View source: R/OptRegionQuad.R

Given a vector of 2-dimensional coordinates, computes and displays the convex hull formed by these points.

1 | ```
plotConvexHull(xin, LB, UB, xlab, ylab)
``` |

`xin` |
n x 2 vector of coordinate points |

`LB` |
2x1 vector of lower bounds for the x,y region where the convex hull is to be plot. Required. |

`UB` |
2x1 vector of lower bounds for the x,y region where the convex hull is to be plot. Required. |

`xlab` |
Label for x axis. |

`ylab` |
Label for y axis. |

An integer vector giving the indices of the unique points lying on the convex hull, in clockwise order. (The first will be returned for duplicate points.). Same as returned by chull(xin).

Function also plots the convex hull upon return.

E. del Castillo

1 2 3 4 5 6 7 8 9 10 |

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.