| R2ngon | R Documentation |
R2ngon() function generates a regular polygonal protofractal set in R^2.
R2ngon(n1=3, n2=1, r=1, o=c(0,0), cycle=FALSE)
n1 |
a number of vertices of a regular polygon. |
n2 |
a number of partition points for the edges of a regular polygon. |
r |
a radius of the circumscribed circle. |
o |
a center of the circumscribed circle. |
cycle |
logical; if |
A regular polygon is a convex polygon in which all edges and all angles are equal.
A protofractal set Z is a discrete or continuous set, which in the iterative process generates a sample X of a fractal set.
A matrix of points coordinates of a protofractal set in R^2.
Pavel V. Moskalev
preRIFS
plot(R2ngon(n1=90, cycle=TRUE), type="l", asp=1, col="gray",
main="Regular {3,4,5,7,11}-gonal sets in R^2")
for (n in c(3,4,5,7,11))
lines(R2ngon(n1=n, cycle=TRUE),
type="b", pch=16, col=hsv(h=(n-2)/9,v=0.9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.