This package allows to obtain an approximation of the area of a shape as well as to represent it. The estimate_area () function simulates the x and y coordinates of a point B and assigns the latter a value of "true" if the point is located in the line of the shape so inside the shape and "false" if it's not the case. The area of the shape is estimated by adding the points that had a "true" value, then dividing the whole by the total number of points.Then the plot_area () function gets a value used to plot the shape as well as other points not belonging to the shape.
Package details |
|
---|---|
Maintainer | Enzo Beijer <Enzo.Beijer@unil.ch> |
License | MIT + file LICENSE |
Version | 0.1.0 |
Package repository | View on GitHub |
Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.