8000 GitHub - n-mcmanus/calecopal: a California-inspired package of color palettes
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

n-mcmanus/calecopal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calecopal: a California-inspired package of color palettes.

Code from Karthik Ram's wesanderson package, linked here. Palettes compiled by A. Bui, H. Lowman, and A.S. Guerra. Pictures were taken from image search/personal collections, and colors were generated using Canva and imagecolorpicker.

Install package

devtools::install_github("an-bui/calecopal")

Updates

September 2020: 23 new palettes!

Redwoods

Organisms!

Calochortus catalinae

Usage

library(calecopal)

# all palettes
names(cal_palettes)

Palettes

More coming soon!

Chaparral

Superbloom

Big Sur

Building palettes

You can use the cal_palette() function to create your own palettes to fit your needs. For example:

cal_palette(name = "desert", n = 15, type = "continuous")

cal_palette("sierra1", n = 50, type = "continuous")

Example plots

library(tidyverse)

ggplot(chickwts %>%
           group_by(feed) %>%
           summarize(av = mean(weight),
                     total = length(weight)) %>%
           filter(feed != "casein"),
         aes(x = feed, y = av, fill = feed)) +
    geom_col() +
    scale_fill_manual(values = cal_palette("sierra1")) +
    theme_bw()

ggplot(chickwts, aes(x = feed, y = weight, color = feed)) +
    geom_jitter(aes(color = feed), alpha = 0.8, width = 0.3, size = 2) +
    geom_boxplot(alpha = 0.2) +
    scale_color_manual(values = cal_palette("kelp1")) +
    theme_bw()

As seen on

Tidy Tuesday

About

a California-inspired package of color palettes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%
0