PlotAOR: Plot the AOR index

Description Usage Arguments Value References Examples

Description

Plot the AOR index (Hoye et al. 2012). The index is based on the abundance-occupancy relationship and facilitates the interpretation of outputs from individual based models.

Usage

1
2
3
PlotAOR(data, x = NULL, y = NULL, scenarios = NULL, fixed = TRUE,
  title = NULL, legendtitle = NULL, triangle = FALSE, trigger = 0,
  brewerpal = NULL, shape = FALSE)

Arguments

data

data.frame Data.frame with x, y and scenario column.

x

character The name of the column with x coordinates (occupancy).

y

character The name of the column with y coordinates (abundance).

scenarios

character The name of the column indicating which scenario a given set of coordinates belong to.

fixed

logical If TRUE (the default) plot has xlim and ylim -1,1.

title

character The title of the plot (optional).

legendtitle

character Title of the legend.

triangle

logical Should the area of decrease on both axes be highlighted? default is FALSE.

trigger

numeric The trigger value for accepted decrease in the summed-AOR indexs score. Mostly used when assessing impact of pesticides. Any points falling beyond the area highlighted by the shaded triangle are an unacceptable level of impact.

brewerpal

character Name of a RColorBrewer palette. If left blank ggplot2 default colors are used.

shape

logical Should scenarios be distinguished by shape (instead of colors)? Default is FALSE.

Value

An AOR plot

References

Hoye, T. T., Skov, F. & Topping, C.J. (2012). Interpreting outputs of agent-based models using abundance-occupancy relationships. Ecological Indicators 20: 221-227.

Examples

1
2
df = data.frame('x' = rnorm(8, 0, .5), 'y' = rnorm(8, 0, .5), 'scenario' = letters[1:8])
PlotAOR(df, x = 'x', y = 'y', scenarios = 'scenario')

LDalby/ralmass documentation built on May 8, 2019, 5:48 p.m.