canvas_ribbons: Draw Ribbons

View source: R/canvas_ribbons.R

canvas_ribbonsR Documentation

Draw Ribbons

Description

This function paints random ribbons and (optionally) a triangle in the middle.

Usage

canvas_ribbons(
  colors,
  background = "#fdf5e6",
  triangle = TRUE
)

Arguments

colors

a string or character vector specifying the color(s) used for the artwork. The number of colors determines the number of ribbons.

background

a character specifying the color of the background.

triangle

logical. Whether to draw the triangle that breaks the ribbon polygons.

Value

A ggplot object containing the artwork.

Author(s)

Koen Derks, koen-derks@hotmail.com

See Also

colorPalette

Examples


set.seed(1)

# Simple example
canvas_ribbons(colors = colorPalette("retro1"))



aRtsy documentation built on Aug. 21, 2023, 9:08 a.m.