Themed colour packages are all the rage. So Nicholas asked Jacinta to make him a colour package. These palettes are based on the colours of Australia which we can all agree is the most beautiful country in the world. If a kiwi can be convinced, then it must be so.
See the colRoz website for the full list of palettes.
Got a palette idea? Submit a pull request on GitHub with your palette or set of palettes as a list like:
palette <- list(
pal1 = rbind(c(<hex codes>), c(<order of discrete colours>))
)
Palettes are stored in the R file oz_palettes.R
. You can add individual palettes to the respective theme or make your own theme. Our palettes are about 6 hex codes long but they can be any number you want. Alternatively get in touch via email or the issues tab on GitHub. We may not have time to choose colours for a given theme but if you already decided on the colour scheme, it's easy to copy and paste the hex codes into the relevant line and you get credit, of course.
See news.md for latest updates
There are binary releases if you'd prefer but for the development version:
install.packages("devtools")
devtools::install_github("jacintak/colRoz", build_vignettes = TRUE)
library("colRoz")
# See all palettes
names(oz_palettes)
# Usage in a graph
pal <- colRoz_pal(name = "ngadju", n = 3, type = "discrete")
library("ggplot2")
ggplot(iris, aes(Petal.Width, Petal.Length , colour=Species)) +
geom_point() +
scale_colour_manual(values = pal) +
theme_classic()
# To visualise the palette
print_palette(colRoz_pal("c.decresii"))
Jacinta Kong designed the Warramaba palette and adapted the code from the following packages:
Nicholas Wu designed the other palettes and the logo.
Contact J. Kong: [email protected]
Contact N. Wu: [email protected]
Twitter
jacintakong
NicholasWuNZ
- Warramaba: Barry Kearney, Jacinta Kong
- Lizards: Jannico Kelk, Ross McGibbon, Peter Soltys, Nicholas Wu, Steven Zozaya, Jacinta Kong
- Landscapes: Nicholas Wu, Jacinta Kong, Jordan Iles
- Birds: Jessica McLachlan, Brenton von Takach, Jacinta Kong
- Plants: Emma Dalziell, Sarah Mulhall
- Inverts: Jacinta Kong, Craig White, Kate Umbers
- Fish: Brenton von Takach
- Mammals: Jacinta Kong