plot.SLOSS: Plotting SLOSS curves

View source: R/plot.SLOSS.R

plot.SLOSSR Documentation

Plotting SLOSS curves

Description

This function is a plotting option for objects of class 'SLOSS', including some alternatives for the layout.

Usage

## S3 method for class 'SLOSS'
plot(
  x,
  y = NULL,
  sl.lty = 2,
  sl.lwd = 1,
  sl.col = "black",
  ls.lty = 1,
  ls.lwd = 1,
  ls.col = "black",
  show.index = TRUE,
  digits.index = 2,
  cex.index = 1,
  pos.index = c(0.05, 0.95),
  show.legend = FALSE,
  pos.legend = "bottomright",
  bty.legend = "o",
  main = "SLOSS curves",
  ...
)

Arguments

x

Object of class SLOSS (output of sloss()).

y

Argument not used in this method.

sl.lty, sl.lwd, sl.col

Arguments passed to plot() as lty (type of line), lwd (width of line), and col (color of the line) for the small-to-large curve.

ls.lty, ls.lwd, ls.col

Arguments passed to lines() as lty (type of line), lwd (width of line), and col (color of the line) for the large-to-small curve.

show.index

A logical value, whether SLOSS-index should be displayed or not.

digits.index

Argument passed to round(), indicating the amount of digits to be displayed in SLOSS-index.

cex.index

Argument passed to text(), indicating the size of SLOSS-index in the plot.

pos.index

A numeric vector of size 2, indicating the x an y position of the index in relation to the respective maxima.

show.legend

A logical value, whether a legend should be displayed or not.

pos.legend, bty.legend

Arguments passed to legend() as x (position of legend as keyword) and bty (type of box surrounding the legend), respectively.

main

Character value with title of the plot.

...

Further arguments passed to plot.

Author(s)

Miguel Alvarez (malvarez@uni-bonn.de).

References

Quinn JF, Harrison SP (1988). Effects on habitat fragmentation and isolation on species richness: evidence from biogeographic patterns. Oecologia 75: 132–140.

Vargas RI, Gärtner S, Alvarez M, Hagen E, Reif A (2013). Does restoration help the conservation of the threatened forest of Robinson Crusoe Island? The impact of forest gap attributes on endemic plant species richness and exotic invasions. Biodiversity and Conservation 22: 1283–1300.

See Also

sloss()

Examples

## Load gaps from the Robinson Crusoe Island
library(Lexiguel)
data(rc_gaps)
data(rc_gaps.env)

## Calculation of curves
rc_curves <- sloss(rc_gaps, rc_gaps.env, area)

## Plot the curves
plot(rc_curves, show.legend = TRUE)


kamapu/Lexiguel documentation built on July 29, 2022, 7:52 p.m.