distort | R Documentation |
This function generates a generative art ggplot object using polygons
distort(
n_x = 5,
n_y = 5,
deg_jitter = 0.4,
col_palette = c("#416322", "#4e7628", "#5a892f", "#679c35", "#74af3b", "#80c044",
"#8dc657"),
line_col = "transparent",
linewidth = 1,
bg_col = "#679c35",
s = 1234
)
n_x |
Number of columns. Default 4. |
n_y |
Number of rows. Default 4. |
deg_jitter |
Degree of jitter. Default 0.4. |
col_palette |
Vector of colours. Must be at least length 4.
Default |
line_col |
Colour of lines. Default |
linewidth |
Width of lines. Default 1. |
bg_col |
Background colour. Default |
s |
Random seed. Default 1234. |
A ggplot object.
distort()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.