gemm_turmite: Create turmites in ggplot2

View source: R/gemm_turmite.R

gemm_turmiteR Documentation

Create turmites in ggplot2

Description

[Turmites](https://en.wikipedia.org/wiki/Turmite) are a type of Turing machine, randomly walking across a 2D grid. This function simulates a two-state relative turmite and graphs the result in ggplot2.

Usage

gemm_turmite(
  n_steps = 1000,
  color = sample(grDevices::colors(), 1),
  seed = NULL
)

Arguments

n_steps

The number of steps to walk the turmite through.

color

The color to graph "success" values in (the more rare color).

seed

The random seed to use.


mikemahoney218/gemm documentation built on Sept. 15, 2022, 10:21 a.m.