plot.landscape: Plotting an objects of class "landscape"

Description Usage Arguments Value Examples

Description

Plotting an objects of class "landscape"

Usage

1
2
3
## S3 method for class 'landscape'
plot(x, cols = "auto", grid = FALSE, axis = FALSE,
  add = FALSE, ani = FALSE, ...)

Arguments

x

A landscape object.

cols

A color vector. If "auto", then a grayscale vector will be used.

grid

If TRUE, plot a grid over the cells. Defaults to FALSE.

axis

If TRUE, plot x and y axis with coordinates. Defaults to FALSE.

add

If TRUE, no primary plot will be called. The change in cells will be plotted over an existing plot. Used for animated plotting in the screen plotting device.

ani

If TRUE, an adjustment constant is added when producing a pixel accurate png or gif file. Required when the function is used to plot animated figures.

Value

A landscape object of dimensions width x height with random distribution of states, in the relative ratio given in cover.

Examples

1
2
obj <- init_landscape(c("+","0","-"), c(0.5,0.25,0.25)) 
plot(obj)

fdschneider/caspr documentation built on May 16, 2019, 12:12 p.m.