plotContours | R Documentation |
Plot dynamic Brownian Bridge Movement Model (dBBMM) contours
plotContours(
input,
tag,
track = NULL,
timeslot,
scale.type = "categorical",
breaks = c(0.95, 0.75, 0.5, 0.25),
col,
title,
land.col = "#BABCBF80"
)
input |
The dbbmm object as returned by |
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. |
dynamic Brownian Bridge Movement Model plot.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.