old_species_daily_site_plot: Plot Activity for a Species at Each Site Within a Project

View source: R/update_Plots.R

old_species_daily_site_plotR Documentation

Plot Activity for a Species at Each Site Within a Project

Description

species_daily_site_plot creates a plot of nightly activity for a chosen species at all sites within a project.

Usage

old_species_daily_site_plot(
  dataset,
  project_name,
  species,
  monitoring_start,
  monitoring_end,
  gaps = NULL,
  survey_year = NULL,
  save_directory = NULL,
  title = TRUE,
  y_scale = "free_y",
  width = 25,
  height = 20,
  text_size = 8,
  date_label = "%b"
)

Arguments

dataset

Object: a species_night_site_projectname data frame genereted by the GUANO_loader function.

project_name

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

species

Character: the four letter species code for the species you wish to plot. E.g. "Epfu".

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 generated by the log_file_parser function. Defaults to null.

survey_year

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

title

Logical vector. Defaults TRUE, if FALSE title is omitted

y_scale

Character. Determines whether scales on the y-axis are matched or free. Defaults to "free_y" for unmatched axis, set to "fixed" for matched axis.

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 environment, and a saved image if selected.

See Also

Other Basic Plots: monitoring_effort_plot(), monthly_activity_plot(), multi_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")


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