This geom plots a time line of earthquakes with a point for each earthquake.
This geom adds a vertical line to each data point with a text annotation (the location of the earthquake)
attached to each line. There is an option to subset to n_max number of earthquakes, where we take the n_max
largest (by magnitude) earthquakes. Aesthetics are x, which is the date of the earthquake and label which takes
the location column from which annotations will be obtained.
This geom is the prototype required for geom_timeline_label()
function to work.
1 |
An object of class GeomTimelineLable
(inherits from Geom
, ggproto
, gg
) of length 5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.