koch | R Documentation |
Calculates or plots a Koch set of fractal lines, which is generated using a recursive algorithm that is built on a triangular hat shaped line segment. Each level of recursion replaces each linear segment by the same pattern.
koch(n = 4, plot = TRUE, res = 512)
n |
an integer value controling the number of recursive levels. |
plot |
logical. If |
res |
the number of pixels in each side of the output matrix |
a res x res
matrix with 0s and 1s
koch()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.