EastBIO Logo Fill Scales (Continuous)
Usage
scale_fill_ebio_c(
...,
colours = ebio_colours(),
midpoint = NULL,
space = "Lab",
na.value = cruk_grey(),
guide = "colourbar",
aesthetics = "fill"
)
Arguments
- ...
Arguments passed to
ggplot2::scale_colour_gradient
orggplot2::scale_colour_gradient2
.- midpoint
The midpoint (in data value) of the diverging scale. Diverging scale only used if the midpoint is not equal to
NULL
, which is the default.- space
Colour space in which to calculate the gradient.
- na.value
Colour to be used for missing values.
- guide
Type of legend.
- aesthetics
The aesthetic to apply this scale to.
- low
Colour for the low end of the gradient.
- mid
Colour for the midpoint of the gradient.
- high
Colour for the high end of the gradient.
See also
Other Layer:
scale_colour_cgem_c()
,
scale_colour_cgem_d()
,
scale_colour_cruk_c()
,
scale_colour_cruk_d()
,
scale_colour_ebio_c()
,
scale_colour_ebio_d()
,
scale_colour_ukri_c()
,
scale_colour_ukri_d()
,
scale_fill_cgem_c()
,
scale_fill_cgem_d()
,
scale_fill_cruk_c()
,
scale_fill_cruk_d()
,
scale_fill_ebio_d()
,
scale_fill_ukri_c()
,
scale_fill_ukri_d()
Examples
library(ggplot2)
ggplot(
data.frame(
x = rnorm(10000),
y = rnorm(10000)
)
) +
aes(x = x, y = y) +
geom_hex() + theme_classic() +
guides(fill = "none") + coord_equal() +
scale_fill_ebio_c()