Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 988 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 988 Bytes

art

This is a repo for holding art done programatically.

Scrawl

For the moment, it just features a piece of R code from this course by Danielle Navarro.

The scrawl - as it is called by her author - combines ggplot, random numbers and a bit of programming in order to produce outputs like the one below:

scrawl

Do it yourself

You can generate your own pictures by cloning this repo:

git clone https://github.com/92amartins/art.git

Customize the parameters in the art_par list:

# change parameters as you like
art_par <- list(
  seed = 2,
  n_paths = 500,
  n_steps = 80,
  sz_step = 200,
  sz_slip = 70,
  pallete = "lajolla"
)

and finally run in your terminal:

Rscript scrawl.R

Important note: You'll need the following R packages: tidyverse, ambient, scico and here