AvatarTLA

Ko-fi

Installation

# install.packages("devtools")
devtools::install_github("Gerardo-Manzanarez-Villasana/AvatarTLA")

Usage

library("AvatarTLA")

library(ggplot2)

# List all available palette names
names(avatar_palettes)
#>  [1] "Mai"          "Suki"         "Iroh"         "FireNation"   "AirNomads"   
#>  [6] "EarthKingdom" "WaterTribe"   "Appa"         "Sokka"        "Toph"        
#> [11] "Azula"        "Aang"         "Zuko"         "Katara"       "Ty"          
#> [16] "Momo"

Palette Previews

Characters

Aang

Inspiration

Aang, the Last Airbender by Yueko

Color palette inspired by Aang

avatar_palette("Aang")

Toph

Inspiration

Toph, the Blind Bandit by Yueko

Color palette inspired by Toph

avatar_palette("Toph")

Mai

avatar_palette("Mai")

Suki

avatar_palette("Suki")

Discrete bar plot with Suki palette

ggplot(mpg, aes(x = drv, fill = drv)) +
  geom_bar() +
  scale_fill_manual(values = avatar_palette("Suki")) +
  theme_minimal() +
  labs(
    title = "Drive Trains with Suki Palette",
    x = "Drive Train",
    y = "Count"
  ) +
  theme(legend.position = "none")

Momo

avatar_palette("Momo")

Iroh

avatar_palette("Iroh")

Appa

avatar_palette("Appa")

Sokka

avatar_palette("Sokka")

Azula

avatar_palette("Azula")

Boxplot with Azula palette

ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) +
  geom_boxplot() +
  scale_fill_manual(values = avatar_palette("Azula", 3)) +
  theme_light() +
  labs(
    title = "Sepal Length Across Species",
    x = "Species",
    y = "Sepal Length (cm)"
  )

Zuko

avatar_palette("Zuko")

Katara

avatar_palette("Katara")

Ty Lee

avatar_palette("Ty")

Avatar Nations

Fire Nation

avatar_palette("FireNation")

Air Nomads

avatar_palette("AirNomads")

Earth Kingdom

avatar_palette("EarthKingdom")

Continuous heatmap using the EarthKingdom palette

ggplot(faithfuld, aes(x = eruptions, y = waiting, fill = density)) +
  geom_tile() +
  scale_fill_gradientn(colors = avatar_palette("EarthKingdom", 100, type = "continuous")) +
  theme_minimal() +
  labs(
    title = "Old Faithful Eruption Density",
    x = "Eruption Duration (min)",
    y = "Waiting Time (min)",
    fill = "Density"
  )

Water Tribe

avatar_palette("WaterTribe")

Credits

Logo

Nation Palettes

Character Palettes

Character Images

Feel free to leave character suggestions or any comments

Best regards

Gerardo Manzanarez-Villasana

Glochids are forever