Package 'rainbowr'

Title: Make LGBT Hexes and Flags
Description: Generates a variety of LGBT flags (e.g., rainbow, transgender) overlaid with the R logo, using the magick package. Also generates hex stickers based on LGBT flags and tilings thereof.
Authors: Danielle Navarro [aut, cre]
Maintainer: Danielle Navarro <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-10-16 02:44:50 UTC
Source: https://github.com/djnavarro/rainbowr

Help Index


List of LGBT Flags

Description

List of LGBT Flags

Usage

list_flags()

Value

A character vector


Creates an LGBT Pride Flag with R Logo

Description

Creates an LGBT Pride Flag with R Logo

Usage

make_banner(
  flag = "rainbow",
  width = 1000,
  palette = c("#cbced0", "#84838b", "#505050", "#a0a0a0")
)

Arguments

flag

character string (e.g., rainbow) naming the flag to be drawn

width

numeric (width of the flag in pixels)

palette

character vector of colours 1, 2 or 4 colours

Value

An object of class "magick-image"


Creates an LGBT Pride Hex Sticker with R Logo

Description

Creates an LGBT Pride Hex Sticker with R Logo

Usage

make_hex(
  flag = "rainbow",
  width = 1000,
  palette = c("#cbced0", "#84838b", "#505050", "#a0a0a0"),
  background = "white"
)

Arguments

flag

character string (e.g., rainbow) naming the flag to be drawn

width

numeric (width of the flag in pixels)

palette

character vector of colours 1, 2 or 4 colours

background

character string specifying the background colour (default = "white")

Value

An object of class "magick-image"


Creates a Tiling of LGBT Hex Stickers

Description

Creates a Tiling of LGBT Hex Stickers

Usage

make_hextile(data, width = 1000)

Arguments

data

data frame or tibble specifying the tiling

width

width of each hex tile in pixels