streams | R Documentation |
This function generates a coloured generative art ggplot object from stream charts.
streams(
bg_col = "white",
line_col = "white",
fill_col = c("#5F4690", "#1D6996", "#38A6A5", "#0F8554", "#73AF48", "#EDAD08",
"#E17C05", "#CC503E", "#94346E", "#6F4070"),
type = "right",
s = 1234
)
bg_col |
Background colour. Default "white". |
line_col |
Line colour. Default "white". |
fill_col |
Vector of fill colours. |
type |
Rotation of stream. Default "right". |
s |
Seed value. Default 1234. |
A ggplot object.
streams()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.