monthly_activity_plot: Monthly Activity Plot

View source: R/update_Plots.R

monthly_activity_plotR Documentation

Monthly Activity Plot

Description

monthly_actiivty_plot creates a plot showing average nightly activity by month and species.

Usage

monthly_activity_plot(
  species_night_site,
  monthly_active_nights,
  exclude_species = NULL,
  species_codes = c("Epfu", "Labo", "Laci", "Lano", "Myle", "Mylu", "Myse", "Mysp",
    "Mysp_all", "Pesu"),
  species_names = c("Big Brown Bat", "Eastern Red Bat", "Hoary Bat", "Silver-haired Bat",
    "Eastern Small-footed Myotis", "Little Brown Myotis", "Northern Myotis",
    "Unidentified Myotis", "Combined Myotis", "Tri-colored Bat")
)

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

save.directory

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

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.

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: monitoring_effort_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.