lolli_plot {RmarineHeatWaves} | R Documentation |
Create a Timeline of Selected Event Metrics.
Description
Visualise a timeline of several event metrics as 'lollipop' graphs.
Usage
lolli_plot(data, metric = "int_max", event_count = 3,
xaxis = "date_start")
Arguments
data |
Output from the |
metric |
One of |
event_count |
The number of top events to highlight. Default is 3. |
xaxis |
One of |
Value
The function will return a graph of the intensity of the selected
metric along the y-axis versus either t
or event_no
.
The number of top events as per event_count
will be highlighted
in a brighter colour. This function differs in use from geom_lolli
in that it creates a stand alone figure. The benefit of this being
that one must not have any prior knowledge of ggplot2 to create the figure.
Author(s)
Albertus J. Smit and Robert W. Schlegel
Examples
ts_dat <- make_whole(sst_NW_Atl)
res <- detect(ts_dat, climatology_start = "1983-01-01",
climatology_end = "2012-12-31")
## Not run:
lolli_plot(res, metric = "int_cum", event_count = 3, xaxis = "date_peak")
## End(Not run)
[Package RmarineHeatWaves version 0.17.0 Index]