- dat
Either A) a string indicating a built-in dataframe with interval
data from the ICS ("periods", "epochs", "stages", "eons", or "eras"),
B) a string indicating a timescale from macrostrat (see list here:
https://macrostrat.org/api/defs/timescales?all), or C) a custom
data.frame of time interval boundaries (see Details).
- fill
The fill color of the boxes. The default is to use the color
column included in dat
. If a custom dataset is provided with dat
without a color
column and without fill, a greyscale will be used.
Custom fill colors can be provided with this option (overriding the color
column) and will be recycled if/as necessary.
- alpha
The transparency of the fill colors.
- height
The height (or width if pos
is left
or right
) of the
scale.
- bord
A vector specifying on which sides of the scale to add borders
(same options as pos
).
- lwd
Line width.
- color
The outline color of the interval boxes.
- lab
Whether to include labels.
- lab_color
The color of the labels. The default is to use the
lab_color
column included in dat
. If a custom dataset is provided with
dat
without a lab_color
column and without fill, all labels will be
black. Custom label colors can be provided with this option (overriding the
lab_color
column) and will be recycled if/as necessary.
- rot
The amount of counter-clockwise rotation to add to the labels
(in degrees).
- family
The font family to use for the labels. There are only three
fonts that are guaranteed to work everywhere: “sans” (the default),
“serif”, or “mono”.
- fontface
The font face to use for the labels. The standard options are
"plain" (default), "bold", "italic", and "bold.italic".
- size
Label size. Either a number as you would specify in
ggplot2::geom_text()
or "auto"
to use ggfittext::geom_fit_text()
.
- skip
A vector of interval names indicating which intervals should not
be labeled. If abbrv
is TRUE
, this can also include interval
abbreviations.
- abbrv
If including labels, should the labels be abbreviated? If
TRUE
, the abbr
column will be used for the labels. If FALSE
, the
name
column will be used for the labels. If "auto"
, the abbreviate()
function will be used to abbreviate the values in the name
column. Note
that the built-in data and data retrieved via get_scale_data()
already
have built-in abbreviations. However, using the "auto"
option here will
create new unique abbreviations based on only the intervals that are being
plotted. In many cases, this may result in abbreviations that are shorter
in length because there are fewer similar interval names to abbreviate.
- neg
Set this to TRUE
if your x-axis is using negative values.
- end_labels
How should labels for intervals at the ends of the guide be
treated? "center", the default, centers the labels within the visible part
of the label. "clip" removes the labels if their midpoint is beyond the
axis limits. "keep" plots the labels in the midpoint of the full interval.
- dat_is_discrete
Are the ages in dat
already converted for a discrete
scale?
- fittext_args
A list of named arguments to provide to
ggfittext::geom_fit_text()
. Only used if size
is set to "auto"
.
- 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.
- 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.
- order
A positive integer
of length 1 that specifies the order of
this guide among multiple guides. This controls in which order guides are
merged if there are multiple guides for the same position. If 0 (default),
the order is determined by a secret algorithm.
- position
Where this guide should be drawn: one of top, bottom,
left, or right.