- title
A character string or expression indicating a title of guide.
If NULL
, the title is not shown. By default
(waiver()
), the name of the scale object or the name
specified in labs()
is used for the title.
- theme
A theme
object to style the guide individually or
differently from the plot's theme settings. The theme
argument in the
guide overrides, and is combined with, the plot's theme.
- arrow
Logical. Should an arrow be drawn to illustrate the direction.
Defaults to TRUE
. The arrow is styled with the legend.axis.line
theme
element. If FALSE
the direction will be indicated by the text
given in labels
- labels
A vector with two strings giving the labels to place at the
start and the end of the legend to indicate direction if arrow = FALSE
- nbin
A numeric specifying the number of bins for drawing the
colourbar. A smoother colourbar results from a larger value.
- position
A character string indicating where the legend should be
placed relative to the plot panels.
- direction
A character string indicating the direction of the guide.
One of "horizontal" or "vertical."
- reverse
logical. If TRUE
the colourbar is reversed. By default,
the highest value is on the top and the lowest value is on the bottom
- order
positive integer less than 99 that specifies the order of
this guide among multiple guides. This controls the order in which
multiple guides are displayed, not the contents of the guide itself.
If 0 (default), the order is determined by a secret algorithm.
- override.aes
A list specifying aesthetic parameters of legend key.
See details and examples.
- ...
ignored.
- available_aes
A vector of character strings listing the aesthetics
for which a colourbar can be drawn.
- arrow.position
The position of the
arrow relative to the example edge. Use the legend.text.position
argument
in theme()
instead.