ReportFigure: Create a basic figure from historic estimates

View source: R/plots.R

ReportFigureR Documentation

Create a basic figure from historic estimates

Description

ReportFigure will summarize historic estimates from Alaska Region aerial surveys in a point graph that can be exported for reporting.

Usage

ReportFigure(
  area,
  species,
  year = "all",
  type = "combined",
  index,
  index2 = "none",
  title = "",
  x.title = "Year",
  y.title = "Population Index"
)

Arguments

area

Which area (project) will be plotted (ACP, CRD, YKD, YKG)

species

The species chosen (see sppntable for options).

year

The range of years for the figure.

type

Observer-specific (observer), strata-specific (strata), or combined (combined; default value)

index

The population index requested (total, itotal, ibb, sing1pair2, flock)

index2

The second index to be plotted simultaneously (optional).

title

The overall figure title. If nothing entered as an argument, the user will be prompted to enter a title in the function.

x.title

The desired x axis label for the final figure.

y.title

The desired y axis label for the final figure.

Details

ReportFigure will take one of the historic estimates tables (package data for AKaerial) and display it as a ggplot figure suitable for an external report.

Value

Renders and returns a ggplot figure

Author(s)

Charles Frost, charles_frost@fws.gov

References

https://github.com/USFWS/AKaerial

Examples

ReportFigure(area="ACP",
species=c("MALL", "SPEI"),
index="ibb",
index2="itotal",
title="Mallard and Spectacled Eider population indices from the Arctic Coastal Plain, 2007-2024")


USFWS/AKaerial documentation built on April 3, 2025, 4:06 p.m.