Git Product home page Git Product logo

calecopal's Introduction

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.

Installation

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 in

chaparral1: Orr et al. Rangeland Ecology and Management 2022.

Orr et al. Rangeland Ecology and Management 2022. "Grazing Intensity Effects on Fire Ignition Risk and Spread in Sagebrush Steppe." https://doi.org/10.1016/j.rama.2022.08.004.

superbloom3: Miles et al. Ecosphere 2022.

Miles et al. Ecosphere 2022. "Effects of urbanization on specialist insect communities of milkweed are mediated by spatial and temporal variation." https://doi.org/10.1002/ecs2.4222.

kelp1: Miller-ter Kuile et al. Ecology 2022.

"Predator–prey interactions of terrestrial invertebrates are determined by predator body size and species identity." https://doi.org/10.1002/ecy.3634.

superbloom1: Apigo and Oono. Ecosphere 2022.

Apigo and Oono. Ecosphere 2022. "Plant abundance, but not plant evolutionary history, shapes patterns of host specificity in foliar fungal endophytes." https://doi.org/10.1002/ecs2.3879.

calecopal's People

Contributors

an-bui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.