Skip to content

PoisonAlien/flatuicoloRs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatuicoloRs

The goal of flatuicoloRs is to make available web-safe color palettes from the popular flatuicolors in R. All the major credit goes to Ahmet Sülek and rest of the contributors.

For details and an interactive palette selection visit flatuicolors.com

There are total 15 color palettes available.

Installation and Usage

You can install flatuicoloRs using remotes, devtools, or BiocManager

#Isntall using remotes
> remotes::install_github("poisonalien/flatuicoloRs")

> library("flatuicoloRs")
#Available palettes
> flatuicoloRs::palinfo()
american     aussie    british   canadian    chinese      dutch   flatUIv1 
        20         20         20         20         20         20         20 
    french     german     indian materialui    russian    spanish    swedish 
        20         20         20         19         20         20         20 
   turkish 
        20 
        
#Returns german color palette
> flatuicoloRs::colpal(name = "german")
[1] "#fc5c65" "#fd9644" "#fed330" "#26de81" "#2bcbba" "#eb3b5a" "#fa8231" "#f7b731"
[9] "#20bf6b" "#0fb9b1" "#45aaf2" "#4b7bec" "#a55eea" "#d1d8e0" "#778ca3" "#2d98da"
[17] "#3867d6" "#8854d0" "#a5b1c2" "#4b6584"

#Displays color palette 
> flatuicoloRs::displaypal(name = "german")

flatuicoloRs also comes with ggplot scales.

library("ggplot2")
data("diamonds")

p1 = ggplot(subset(diamonds, carat >= 2.2),
            aes(x = table, y = price, colour = cut)) +
    geom_point(alpha = 0.7) +
    geom_smooth(method = "loess", alpha = 0.05, size = 1, span = 1) +
    theme_bw()
    
p1+scale_color_spanish()

Flat palettes

flatUIv1

materialui

Country palettes

american 🇺🇸

aussie 🇦🇺

british 🇬🇧

canadian 🇨🇦

chinese 🇨🇳

dutch 🇳🇱

french 🇫🇷

german 🇩🇪

indian 🇮🇳

russian 🇷🇺

spanish 🇪🇸

swedish 🇸🇪

turkish 🇹🇷

Releases

No releases published

Packages

No packages published

Languages