pal_colour | R Documentation |
This creates a character vector that represents colours so when it is printed, colours will be formatted as hexadecimal strings.
pal_colour(x = character())
is_colour(x)
as_colour(x)
## Default S3 method:
as_colour(x)
## S3 method for class 'palettes_palette'
as_colour(x)
x |
|
Colours can be specified using either:
Hexadecimal strings of the form "#RRGGBB"
or "#RRGGBBAA"
Colour names from grDevices::colors()
Positive integers i
that index into grDevices::palette()
[i]
An S3 vector of class palettes_colour
.
pal_palette()
pal_colour(c("darkred", "#0F7BA2"))
is_colour("darkred")
is_colour(pal_colour("darkred"))
as_colour("#0F7BA2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.