| type_chull | R Documentation |
Type function for drawing convex hulls around grouped points.
Uses chull to compute the convex hull of each
group and draws the result as a polygon.
type_chull(density = NULL, angle = 45)
density |
the density of shading lines, in lines per inch. The
default value of |
angle |
the slope of shading lines, given as an angle in degrees (counter-clockwise). |
# "chull" type convenience character string
tinyplot(Sepal.Length ~ Petal.Length | Species, data = iris, type = "chull")
# layer filled convex hull(s) on top of points
tinyplot(Sepal.Length ~ Petal.Length | Species, data = iris, theme = "basic")
tinyplot_add(type = "chull", fill = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.