Description Usage Arguments Details Value Examples
Create a grid of points within an ellipse.
1 | ellipse_grid(N, radius, center = c(0, 0))
|
N |
The number of subintervals to divide the smaller radius into. |
radius |
A vector of length two giving the radius of each length. |
center |
A vector of length two giving the center of the ellipse. |
Code taken from https://people.sc.fsu.edu/~jburkardt/cpp_src/ellipse_grid/ellipse_grid.html.
Returns a matrix with the x and y positions of each point in the grid.
1 2 | p = shapegrid::ellipse_grid(25, c(1,1), c(0,0))
plot(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.