Description Usage Arguments Details Value Examples
View source: R/pointscircunference.r
This function estimate points to draw a handwritten circunference.
1 2 | pointscircunference(x=0, y=0, diameter=1, ratioxy=1,
npoints= 16, alpha= runif(1, 0, pi/2))
|
x |
A numeric value. Coordinate x of the center of the circunference. |
y |
A numeric value. Coordinate y of the center of the circunference. |
diameter |
A numeric value. Diameter fo the circunference. |
ratioxy |
A numeric value. Ratio x to y. |
npoints |
Number of points (including the limits). |
alpha |
Numeric. Angle to begin to calculate the circunferece. |
It calculates a circunference in a XKCD style.
By default, the data are smoothed using a Bezier curve. It gives 60 points.
A data frame with the points of the circunference.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.