Description Usage Arguments Value Examples
Plot L-systems as line segments.
1 2 |
x |
A data frame of class "l_system" as returned from
|
... |
Other parameters passed on to |
None
1 2 3 4 5 6 7 8 9 10 11 12 13 | l_tree <- l_system(
axiom = "X",
rules = list(X = "F[+@.7X]F![-@.6X]F"),
n = 10,
angle = radians(22.5),
extra_info = TRUE
)
# using the extra_info argument to vary color and line thickness:
plot(
l_tree,
col = ifelse(l_tree$depth < 6, "sienna", "forestgreen"),
lwd = l_tree$depth / max(l_tree$depth) * -2 + 3
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.