This package is inspired by the generative art of Eric Davidson
You can install the released version of codeart from GitHub with:
remotes::install_github("schochastics/codeart")
The code below shows how to transform an existing R script into “abstract art”.
library(codeart)
library(showtext)
font_add_google("Niconne", "niconne")
showtext_auto()
dat <- codeart_script("R/codeart_script.R")
plot_codeart_script(dat,font = "niconne",title = "codeart_script.R",caption = "@schochastics")
You can also generate random art with the package.
library(codeart)
dat <- codeart_random()
plot_codeart_rand(dat)