Skip to content

gronert-m/sciColours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sciColours

sciColours is a package containing the corporate colour schemes of SCIF.

Installation

You can install the released version of sciColours from GitHub with:

# install.packages("devtools")
devtools::install_github("gronert-m/sciColours")

Basic use examples

library(sciColours)
library(ggplot2)

# sci_pal requires to select the palette (default is "main")  followed by the number of colours 
sci_pal()(2)
#> [1] "#A05163" "#DFF2FD"
sci_pal(palette= "main")(2)
#> [1] "#A05163" "#DFF2FD"
sci_pal(palette= "secondary")(3)
#> [1] "#A05163" "#0D83AF" "#785DA4"

# scale_colour_sci can be added to the ggplot object
ggplot(iris, aes(Sepal.Width, Sepal.Length, colour = Species)) +
  geom_point(size = 4) +
  sciColours::scale_colour_sci()

# same for scale_fill_sci
ggplot(mpg, aes(manufacturer, fill = manufacturer)) +
    geom_bar() +
    theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
    scale_fill_sci(palette = "main", guide = "none")

About

SCIF Colour Scheme

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages