old_first_observations_plot: Plot Timing of First Observations Relative to Sunset

View source: R/old_Activity_Timing.R

old_first_observations_plotR Documentation

Plot Timing of First Observations Relative to Sunset

Description

first_observations_plot creates a plot showing the first observation of the specified species relative to local sunset for each site withn a project.

Usage

old_first_observations_plot(
  dataset,
  project_name,
  species,
  monitoring_start,
  monitoring_end,
  gaps = NULL,
  location = NULL,
  survey_year = NULL,
  timezone = "EST",
  text_size = 8,
  date_label = "%b",
  save_directory = NULL
)

Arguments

dataset

Object: a raw_data_projectname data frame generated by the GUANO_loader function.

project_name

Character, a brief and relevant reference phrase that will be used to name the text file. Ideally mathcing project name used in other functions.

monitoring_start

Character, the date the monitoring began (e.g. "2019-01-01")

monitoring_end

Character, the date the monitoring ceased (e.g. "2019-01-01")

gaps

Object: a gaps_projectname data frame genereted by the log_file_parser function. Defaults to null.

location

Specify a location to filter to a specific site. Default is NULL.

survey_year

Specify a specific year. Default is NULL.

timezone

Character. Specify a timezone for calculating sunset times. Default is 'EST', do not change for Ontario data...

text_size

Numeric: adjusts the size of text in the figure.

save_directory

Character: if provided a .png image of the plot will be saved in the folder specified. Defaults to NULL: no output saved.

date_breaks

Date value: adjusts the formatting of the month labels on the y-axis. See https://www.statmethods.net/input/dates.html for formatting.

Value

A plot as an object in the current envrionment, and a saved image if selected.

See Also

Other Activity Timing: first_observations_plot()


vulpes-vulpes/batr documentation built on Jan. 23, 2025, 3:23 p.m.