Description Usage Format Value Note
GeomTimelineLabel
is a custom Geom for displaying timeline labels.
1 |
An object of class GeomTimelineLabel
(inherits from Geom
, ggproto
) of length 5.
A Geom object that is used within the geom_timeline_label
function.
This is an internal function that is not directly called by the user. The aesthetics are as follows:
x: A vector of dates.
label: A character vector, e.g. the column LOCATION_NAME
n_max (optional): An integer value indicating the maximum number of labels per timeline.
The n_max
highest values of col_max
will be selected.
col_max (optional): The column based on which the n_max
highest values will be selected.
y (optional): A factor indicating some stratification in which case multiple time lines will be plotted for each level of the factor (e.g. country).
colour (optional): A colour used for colouring the vertical lines leading to the label.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.