The rainbowr
package generates LGBT pride flags overlaid with the R logo
The package can be installed from GitHub with:
# install.packages("devtools") devtools::install_github("djnavarro/rainbowr")
df <- data.frame( flag = c("rainbow", "transgender", "bisexual", "bear", "aromantic", "lesbian"), palette1 = c("white", "grey80", "#ccccff", "grey30", "grey50", "grey50"), palette2 = c("black", "black", "white", "brown", "black", "lavender"), row = c(1, 1, 2, 3, 3, 2), col = c(1, 2, 1, 2, 3, 3), stringsAsFactors = FALSE ) hextile <- make_hextile(df) #> adding rainbow hex (1 of 6) #> adding transgender hex (2 of 6) #> adding bisexual hex (3 of 6) #> adding bear hex (4 of 6) #> adding aromantic hex (5 of 6) #> adding lesbian hex (6 of 6) plot(hextile)