% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/legend_gradient.R
\name{draw_gradient_swatch}
\alias{draw_gradient_swatch}
\title{Draw gradient (continuous) legend swatch}
\usage{
draw_gradient_swatch(
  legend_args,
  fklgnd,
  lmar,
  outer_side,
  outer_end,
  outer_right,
  outer_bottom,
  user_inset = FALSE
)
}
\arguments{
\item{legend_args}{Legend arguments list}

\item{fklgnd}{Fake legend object (from drawing with plot=FALSE)}

\item{lmar}{Legend margins}

\item{outer_side}{Logical flag for outer side placement}

\item{outer_end}{Logical flag for outer end placement}

\item{outer_right}{Logical flag for outer right placement}

\item{outer_bottom}{Logical flag for outer bottom placement}

\item{user_inset}{Logical flag indicating user-supplied inset}
}
\value{
NULL (draws gradient legend as side effect)
}
\description{
For gradient legends, we draw a custom color swatch using
grDevices::as.raster and add labels, tick marks, and title manually.
}
\keyword{internal}
