sunsets | R Documentation |
This function creates generative art using faceted segments.
sunsets(
num_bars = 8,
n = 1000,
col_palette = PrettyCols::prettycols("Lively"),
bg_col = "#413C58",
vertical = FALSE,
fade_vertical = FALSE,
alpha = 1,
s = 1234
)
num_bars |
Number of bars. Default 8. |
n |
Number of lines per bar. Default 1000. |
col_palette |
Colour palette. Default PrettyCols::prettycols("Lively"). |
bg_col |
Background colour. Default "#413C58". |
vertical |
Boolean indicating whether bars should be vertical. Default FALSE. |
fade_vertical |
Boolean indicating whether the colouring should be vertical. Default FALSE. |
alpha |
Transparency of coloured bars. Default 1. |
s |
Random seed. Default 1234. |
A ggplot object.
sunsets()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.