Learn R Programming

briskaR (version 0.1.2)

plot Landscape-class: Plot Method for a Landscape-class

Description

Plot a Landscape object. If time and objecT (as ToxicIntensityRaster class attribut) is specified, the values of objectT at time time are draw over the landscape.

Usage

# S4 method for Landscape,ANY
plot(x, y, add = F, objectT = NULL, time = -1,
  ..., plot.legend = TRUE, plot.legend.raster = TRUE)

Arguments

x

A Landscape object

y

ANY

add

boolean to add draw hover plot

objectT

Toxic intensity matrix (result of toxicIntensity, default NULL)

time

Time selection (default = -1) for Toxic intensity

...

default plot par

plot.legend

plot legend (default TRUE)

plot.legend.raster

plot raster legend (default TRUE)

Examples

Run this code
# NOT RUN {
# plot a Landscape object
data(maize_65)
plot(maize.landscape)
# plot pollen dispersion at time 61 for maize data
## create a ToxicIntensityRaster object
tox<-array(0,c(61,1024,1024))
tox[61,,]<-as.matrix(maize.toxicintensity61)
attr(tox,"class") <- "ToxicIntensityRaster"
## plot tox over the landscape at time 61
plot(maize.landscape,objectT=tox,time=61)
# }

Run the code above in your browser using DataLab