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 ๐Ÿ‡น๐Ÿ‡ท

About

Color palettes from https://flatuicolors.com/ in R

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages