plot_tag_twilight: Plot twilight data of a 'tag'

View source: R/plot.tag.R

plot_tag_twilightR Documentation

Plot twilight data of a tag

Description

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.

See Also

Other plot_tag: plot_tag_acceleration(), plot_tag_light(), plot_tag_pressure(), plot_tag_temperature()

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)
})

Rafnuss/GeoPressureR documentation built on April 17, 2025, 12:58 p.m.