knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

codeart

Lifecycle: experimental

This package is inspired by the generative art of Eric Davidson

Installation

You can install the released version of codeart from GitHub with:

``` {r install, eval=FALSE} remotes::install_github("schochastics/codeart")

## Examples

The code below shows how to transform an existing R script into "abstract art".

```r
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)


schochastics/codeart documentation built on Feb. 7, 2020, 2:37 a.m.