monitoring_effort_plot: Plot of Monitoring Effort by Site

View source: R/update_Plots.R

monitoring_effort_plotR Documentation

Plot of Monitoring Effort by Site

Description

monitoring_effort_plot creates a plot showing monitor uptime at each site within the project.

Usage

monitoring_effort_plot(
  gaps,
  project_name,
  monitoring_start,
  monitoring_end,
  survey_year = NULL,
  save_directory = NULL,
  title = TRUE,
  width = 25,
  height = 20,
  text_size = 8,
  date_label = "%b"
)

Arguments

gaps

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

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

survey_year

Character: for projects with data from multiple years, to select year

title

Logical vector. Defaults TRUE, if FALSE title is omitted

width

Number. The width in cm of the plot if saved to file. Default is 25 cm.

height

Number. The height of the plot if saved to file. Default is 20 cm.

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 Basic Plots: monthly_activity_plot(), multi_species_daily_site_plot(), old_species_daily_site_plot(), species_daily_site_plot(), species_site_aggregated_plot()

Examples

## Not run: 
species_daily_site_plot(species_night_site_projectname, "Project Name", "Mylu", "2019-01-01", "2019-12-31")

## End(Not run)

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