Generate Random Tree-Like Images

A generative art system for producing tree-like images using a stochastic branching process to create the structures. The package includes tools for generating the data structures and visualising them in a variety of styles.


Flametree

Lifecycle:experimental CRANstatus CRAN RStudio mirrordownloads R-CMD-check Codecov testcoverage

Flametree provides a system for making generative art in R, written with two goals in mind. First, and perhaps foremost, art is inherently enjoyable and generative artists working in R need packages no less than any other R users. Second, the system is designed to be useful in the classroom: getting students to make artwork in class is an enjoyable exercise and flametree can be used as a method to introduce some key R concepts in a fun way. You can install the current version of flametree with:

install.packages("flametree")

Alternatively you can install the development version of flametree with:

# install.packages("devtools")
devtools::install_github("djnavarro/flametree")

Flametree is fairly flexible and produces art in several different styles. One example is shown here, other possibilities are described throughout the documentation.

library(flametree)

# pick some colours
shades <- c("#1b2e3c", "#0c0c1e", "#74112f", "#f3e3e2")

# data structure defining the trees
dat <- flametree_grow(time = 10, trees = 10)

# draw the plot
dat |> 
  flametree_plot(
    background = "antiquewhite",
    palette = shades, 
    style = "nativeflora"
  )

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("flametree")

0.2.0 by Danielle Navarro, 3 months ago


https://github.com/djnavarro/flametree, https://flametree.djnavarro.net/


Report a bug at https://github.com/djnavarro/flametree/issues


Browse source code at https://github.com/cran/flametree


Authors: Danielle Navarro [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports tibble, dplyr, purrr, tidyr, ggplot2, ggforce, magrittr, methods

Suggests deldir, rmarkdown, spelling, testthat


See at CRAN