Title: | Some palettes for the IDEM, IDDU, and ACEFA research groups |
---|---|
Description: | What the package does (one paragraph). |
Authors: | Gerry Ryan [aut, cre] |
Maintainer: | Gerry Ryan <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2024-11-06 02:39:59 UTC |
Source: | https://github.com/idem-lab/idpalette |
An alias for idpalette(p = "acefa", n, rev)
acefa(n = NULL, rev = FALSE)
acefa(n = NULL, rev = FALSE)
n |
|
rev |
|
idpalette
class object of hex colours length n
.
The idpalette
class has a print method that will plot the colours in the
object, but it is underneath that a character
string of length n
and can
be otherwise treated as such.
acefa(5)
acefa(5)
An alias for idpalette(p = "iddu", n, rev)
iddu(n = NULL, rev = FALSE)
iddu(n = NULL, rev = FALSE)
n |
|
rev |
|
idpalette
class object of hex colours length n
.
The idpalette
class has a print method that will plot the colours in the
object, but it is underneath that a character
string of length n
and can
be otherwise treated as such.
iddu(5)
iddu(5)
An alias for idpalette(p = "idem", n, rev)
idem(n = NULL, rev = FALSE)
idem(n = NULL, rev = FALSE)
n |
|
rev |
|
character
of length n
idpalette
class object of hex colours length n
.
The idpalette
class has a print method that will plot the colours in the
object, but it is underneath that a character
string of length n
and can
be otherwise treated as such.
idem(7)
idem(7)
Base colour palettes for IDEM, IDDU, and ACEFA
idpal(p = c("idem", "iddu", "acefa", "acefa_pink", "idem_official"))
idpal(p = c("idem", "iddu", "acefa", "acefa_pink", "idem_official"))
p |
|
"idem"
, "iddu"
, and "acefa"
return palettes for all colours in logos.
"..._official"
palettes return only the four-colour palettes per the style-
guide from the designer.
NB: These 'non-official' colours are estimated by a colour dropper thing Gerry found on the internet and may or may not be exacty correct.
character
of hex values
idpal("idem")
idpal("idem")
Create colour palettes based on IDEM, IDDU, and ACEFA colours
idpalette(p, n = NULL, rev = FALSE)
idpalette(p, n = NULL, rev = FALSE)
p |
|
n |
|
rev |
|
idpalette
class object of hex colours length n
.
The idpalette
class has a print method that will plot the colours in the
object, but it is underneath that a character
string of length n
and can
be otherwise treated as such.
idpalette( "idem", n = 20, rev = TRUE )
idpalette( "idem", n = 20, rev = TRUE )
Convenience wrapper to ggplot2::continuous_scale
to allow use of
idpalette
or any arbitrary set of colours to be used as a ggplot2
fill
or colour scale
scale_id_continuous( cols, aesthetics = c("fill", "colour"), na.value = "transparent" )
scale_id_continuous( cols, aesthetics = c("fill", "colour"), na.value = "transparent" )
cols |
|
aesthetics |
Scale aesthetic. |
na.value |
Garn - whaddaya want in the |
A ggproto
object of class Scale
and ScaleContinuous
library(ggplot2) ggplot(mtcars) + geom_point( aes( x = disp, y = hp, colour = qsec ), size = 5 ) + scale_id_continuous( cols = iddu(), aesthetics = "colour" )
library(ggplot2) ggplot(mtcars) + geom_point( aes( x = disp, y = hp, colour = qsec ), size = 5 ) + scale_id_continuous( cols = iddu(), aesthetics = "colour" )