% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_theme.R
\name{nhm_colour_ramp}
\alias{nhm_colour_ramp}
\title{Map numeric values to NHM theme colours}
\usage{
nhm_colour_ramp(
  x,
  colours = NULL,
  limits = NULL,
  n = 256,
  na_colour = "#444444",
  palette = "default"
)
}
\arguments{
\item{x}{Numeric vector of values to map.}

\item{colours}{Character vector of colours to interpolate. Defaults
to a ramp from cyan through lime to pink.}

\item{limits}{Length-2 numeric vector giving the value range. Values
outside this range are clamped. Defaults to \code{range(x, na.rm = TRUE)}.}

\item{n}{Number of interpolation steps (default 256).}

\item{na_colour}{Colour to use for \code{NA} values.}

\item{palette}{Character. Passed to \code{\link{nhm_colours}} when
using the default colour ramp.}
}
\value{
A character vector of hex colour strings the same length as
\code{x}.
}
\description{
Takes a numeric vector and returns a character vector of hex colours
interpolated across an NHM-themed colour ramp. Useful for colouring
markers on maps or points on plots by a continuous variable.
}
