Creates a layer which is the subset of points lying on the hull (convex or alpha) of the set of points specified.
l_layer_hull( widget, x, y, color = "black", linewidth = 1, label = "hull", parent = "root", index = 0, group = NULL, active = TRUE, ... )
| widget | `loon` widget path name as a string |
|---|---|
| x | The coordinates of |
| y | The coordinates of |
| color | the line color of each hull |
| linewidth | the line width |
| label | label used in the layers inspector |
| parent | parent group layer |
| index | of the newly added layer in its parent group |
| group | separate x vector or y vector into a list by group |
| active | a logical determining whether points appear or not (default is |
| ... | other arguments to modify |
an l_layer widget
Coordinates: the x or y can be a list or a vector.
If they are vectors, the argument group will be used to set the groups.
If they are not provided, the x will be inherited from the widget
if(interactive()) { p <- l_plot(iris, color = iris$Species) l <- l_layer_hull(p, group = iris$Species) }