Description Usage Arguments Value Examples
Plotting an objects of class "landscape"
1 2 3 |
x |
A landscape object. |
cols |
A color vector. If |
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. |
A landscape object of dimensions width
x height
with
random distribution of states
, in the relative ratio given in
cover
.
1 2 | obj <- init_landscape(c("+","0","-"), c(0.5,0.25,0.25))
plot(obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.