boxes | R Documentation |
This function generates a coloured generative art ggplot object from treemaps.
boxes(
n = 100,
perc = 0.1,
col_palette = rcartocolor::carto_pal(n = 7, "DarkMint"),
bg_col = "black",
s = 1234
)
n |
Number of boxes |
perc |
Relationship between box size and colour. Value between 0 and 1 where 0 represents randomness and 1 perfect identical. Default 0.1. |
col_palette |
Vector of colours. Default "DarkMint" colour palette from rcartocolor. |
bg_col |
Background colour. Default "black". |
s |
Seed value. Default 1234. |
A ggplot object.
boxes()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.