Description Usage Arguments Format Aesthetics Examples
View source: R/geom-timeline-label.R
Create labels for timeline
1 2 3 4 5 | geom_timeline_label(mapping = NULL, data = NULL, stat = "identity",
position = "identity", na.rm = FALSE, show.legend = NA,
inherit.aes = TRUE, ...)
GeomTimelineLabel
|
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
... |
other arguments passed on to |
An object of class GeomTimelineLabel
(inherits from Geom
, ggproto
) of length 5.
'n_max' is the maximum number of labels that should be plotted as integer with length 1.
1 2 3 4 5 6 7 | ## Not run:
library(ggplot2)
ggplot(noaa_data, aes(x = date, size = EQ_PRIMARY, n_max = 5)) +
geom_timeline() +
geom_timeline_label()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.