plot_indicator: Plot indicator

View source: R/plot_indicator.R

plot_indicatorR Documentation

Plot indicator

Description

This function plots the indicator using ggplot2.

Usage

plot_indicator(
  indicator,
  CIs,
  year = 1:length(indicator),
  index = indicator[1],
  smoothed_line = NULL,
  main = ""
)

Arguments

indicator

A numeric vector, one value for each year

CIs

A matrix with two columns, the first column is the lower bound and the second is the upper bound.

year

A numeric vector as long as indicator giving the years

index

Numeric, the index value, by default it is taken to be the first value of indicator

smoothed_line

A numeric vector giving the smoothed values to plot see GAM_smoothing

main

Title given to the plot

Value

The plot object is returned


BiologicalRecordsCentre/BRCindicators documentation built on April 22, 2024, 2:32 p.m.