Giter Site home page Giter Site logo

ochre's Introduction

Australia-themed Colour Palettes

Ochre is a brownish-yellow pigment that occurs naturally in soils across Australia. Historically, ochre has been used for artwork by many indigenous cultures, including the Aboriginal people of Australia.

The goal of ochRe is to provide colour palettes inspired by Australian art, landscapes and wildlife. The palettes can be used in conjunction with ggplot2 or plot to provide colours to data plots. There are 16 different palettes (at the moment!), each one based on an iconic Australian artwork, landscape or creature. Some palettes are more suitable for displaying qualitative data, others will look fabulous used in sequential plots. More information can be found in the vignette, including which palettes work best for those with impaired colour vision.

# load the ochRe vignette
vignette("ochre")

Installation

You can install ochRe from github with:

# You need to install the 'devtools' package first
devtools::install_github("ropenscilabs/ochRe")

The Palettes

pal_names <- names(ochre_palettes)

par(mfrow=c(length(ochre_palettes)/2, 2), lheight = 2, mar=rep(1, 4), adj = 0)
for (i in 1:length(ochre_palettes)){
    viz_palette(ochre_palettes[[i]], pal_names[i])
}

Example

This is a basic example of how to use the namatjira_qual palette in a plot.

library(ochRe)
library(ggplot2)
ggplot(diamonds) + geom_bar(aes(x = cut, fill = clarity)) +
  scale_fill_ochre()

In this example we use the winmar palette directly via the colorRampPalette() function (for the base plot connoisseurs).

## basic example code
pal <- colorRampPalette(ochre_palettes[["winmar"]])
image(volcano, col = pal(20))

Individual palettes can be visualised using the viz_palette function

viz_palette(ochre_palettes[["tasmania"]])

ochre's People

Contributors

rdpeng avatar hollylkirk avatar dicook avatar alicia-a avatar ellesaber avatar rgayler avatar mitchelloharawild avatar

Watchers

James Cloos avatar Will Hore-Lacy 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.