- 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 partially overrides, and is combined with, the plot's theme.
Arguments that apply to a single legend are respected, most of which have
the legend-prefix. Arguments that apply to combined legends
(the legend box) are ignored, including legend.position,
legend.justification.*, legend.location and legend.box.*.
- angle
Overrules the theme settings to automatically apply appropriate
hjust and vjust for angled legend text. Can be a single number
representing the text angle in degrees, or NULL to not overrule the
settings (default).
- position
A character string indicating where the legend should be
placed relative to the plot panels.
One of "top", "right", "bottom", "left", or "inside".
- direction
A character string indicating the direction of the guide.
One of "horizontal" or "vertical".
- override.aes
A list specifying aesthetic parameters of legend key.
See details and examples.
- reverse
logical. If TRUE the order of legends is reversed.
- 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.
- show.limits
Logical. Should the limits of the scale be shown with
labels and ticks. Default is NULL meaning it will take the value from the
scale. This argument is ignored if labels is given as a vector of
values. If one or both of the limits is also given in breaks it will be
shown irrespective of the value of show.limits.
- ...
ignored.