Skip to contents

This function display a plot of twilight time series recorded by a tag

Usage

plot_tag_twilight(
  tag,
  twilight_line = NULL,
  transform_light = TRUE,
  twl_offset = NULL,
  plot_plotly = FALSE
)

Arguments

tag

a GeoPressureR tag object

twilight_line

a twilight data.frame typically created with path2twilight() which is displayed as a line

transform_light

logical to use a log transformation of light

twl_offset

Shift of the middle of the night compared to 00:00 UTC (in hours). If not provided, it uses the middle of all nights.

plot_plotly

logical to use plotly

Value

a plot object.

Examples

withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
  tag <- tag_create("18LX", quiet = TRUE)

  plot_tag_twilight(tag, plot_plotly = TRUE)

  tag <- tag_label(tag, quiet = TRUE)

  plot_tag_twilight(tag)
})