edge_plot: Plot an edge matching puzzle.

Description Usage Arguments Value Examples

View source: R/edge_plot.R

Description

Plot an edge matching puzzle.

Usage

1
edge_plot(tiles)

Arguments

tiles

List of character vectors of the form list(c("red", "yellow", "blue"), ..., c("white", "black", "green")) of length 16. This list represents the colours of the dots on 16 equilateral triangle tiles that will tessalate into a larger triangle. tiles should start with the bottom left tile and end with the top tile, moving left to right, row by row. The colours within each character vector go clock-wise around each triangle, starting with the top left dot for triangles pointing upward, and the bottom right dot for triangles pointing downward.

Value

A ternary diagram displaying the puzzle

Examples

1
edge_plot(tiles = rep(list(c("black", "white", "blue")), 16))

jsphdms/edger documentation built on May 28, 2019, 5:40 a.m.