plot.population: plot_population

Description Usage Arguments Author(s) See Also Examples

View source: R/graphics.R

Description

plot one given population and its capacity line.

Usage

1
2
3
## S3 method for class 'population'
plot(x, ..., capacity_line = TRUE,
  capacity_lty = 3, text_print = TRUE, add = FALSE)

Arguments

x

a population object

...

every argument for the plot function such as graphical parameters for lines. Classical graphical parameter applies on the population curve, NOT on the capacity line (custom parameter need to be given, as exemple capacity_lty).

  • type for the size line, set to 'b' by default.

  • xlab set to 'Time' by default, see title.

  • ylab set to 'Size' by default, see title.

  • main set to use the pop label by default, see title.

capacity_line

set to TRUE by default, if a dashed line must be drawned to show the capacity.

capacity_lty

set to 3 by default.

text_print

set to TRUE by default, whether there is a text on the capacipty line or not (writting population 'K label' by default).

add

set to FALSE by default, to add another population plot on a precedent one.

Author(s)

Jaunatre Maxime <maxime.jaunatre@etu.univ-grenoble-alpes.fr>

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(hudson)
hare <- hudson$hare
lynx <- hudson$lynx

plot(hare,
  col = "red", pch = 15, type = "b", capacity_lty = 3,
  lty = 2, main = "Hudson data"
)

plot(lynx,
  col = "blue", pch = 15, type = "b", capacity_lty = 3,
  add = TRUE, lty = 1, capacity_line = TRUE
)

BEE-Univ-Grenoble/BeePODYNA documentation built on Dec. 25, 2019, 4:49 a.m.