plotContours: Plot dynamic Brownian Bridge Movement Model (dBBMM) contours

View source: R/plot.R

plotContoursR Documentation

Plot dynamic Brownian Bridge Movement Model (dBBMM) contours

Description

Plot dynamic Brownian Bridge Movement Model (dBBMM) contours

Usage

plotContours(
  input,
  tag,
  track = NULL,
  timeslot,
  scale.type = "categorical",
  breaks = c(0.95, 0.75, 0.5, 0.25),
  col,
  title,
  land.col = "#BABCBF80"
)

Arguments

input

The dbbmm object as returned by dynBBMM.

tag

Choose a single tag to plot

track

If a single tag was chosen, you can use 'track' to define a specific track to be plotted.

timeslot

The timeslot to be plotted. Only relevant for timeslot dbbmms.

scale.type

Character vector selecting the type of scale to plot space use areas. By default a "categorical" scale is set, but alternatively can be set to "continuous" to return the space use areas with a continuous scale.

breaks

When scale.type = "categorical", this is a numeric vector selecting the use areas to plot. By default, the 99%, 95%, 75%, 50% and 25% areas will be returned.

col

The colours to be used when scale.type = "categorical". Must match the number of breaks.

title

The title of the plot.

land.col

Colour of the land mass.

Value

dynamic Brownian Bridge Movement Model plot.

Examples


# Import river shapefile
water <- actel::shapeToRaster(shape = paste0(system.file(package = "RSP"), "/River_latlon.shp"), 
size = 0.0001, buffer = 0.05) 

# Create a transition layer with 8 directions
tl <- actel::transitionLayer(x = water, directions = 8)

# Import example output from actel::explore() 
data(input.example) 

# Run RSP analysis
rsp.data <- runRSP(input = input.example, t.layer = tl, coord.x = "Longitude", coord.y = "Latitude")

# Run dynamic Brownian Bridge Movement Model (dBBMM)
dbbmm.data <- dynBBMM(input = rsp.data, base.raster = water, UTM = 56)

# Plot example dBBMM
plotContours(dbbmm.data, tag = "A69-9001-1111", track = 1)



YuriNiella/RSP documentation built on Feb. 2, 2024, 5:03 a.m.