An R package containing useful functions for implementing SNEE style.
-
Neutrals: navy, black, dark_grey, pale_grey, white
-
Purples: purple, darkpurple1, darkpurple2, lightpurple1, lightpurple2
-
Greens: green, darkgreen1, darkgreen2, lightgreen1, lightgreen2
-
Pinks: pink, darkpink1, darkpink2, lightpink1, lightpink2
-
Blues: blue, darkblue1, darkblue2, lightblue1, lightblue2
-
Yellows: yellow, darkyellow1, darkyellow2, lightyellow1, lightyellow2
- greens
- purples
- pinks
- blues
- yellows
- diverge (diverging)
- qual (qualitative/categorical)
- You can install the R package directly from Github with:
devtools::install_github('SNEE-ICS/SNEEstyle')- Run
library(SNEEstyle)to load the functions and make them available in your current R session.
Below are quick examples of how SNEEstyle can be used.
- You can return all SNEE colour codes with:
library(SNEEtools)
SNEE_colour()- You can return specific colour codes by name with:
library(SNEEtools)
SNEE_colour(c("green", "lightgreen2"))- You can return colour palette codes by palette name with:
library(SNEEtools)
SNEE_colour(palette = "greens")- You can apply SNEE theme and colours to your plots with:
library(ggplot2)
library(SNEEtools)
ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length, colour = Species)) +
geom_point() +
scale_colour_SNEE("greens") +
SNEE_theme()- You can create a quarto document or presentation based on existing SNEE templates with:
libary(SNEEstyle)
SNEE_quarto_setup(type = "presentation", format = "html", "outputs", "draft1")