addStations: Add receiver stations to an existing plot

View source: R/plot.R

addStationsR Documentation

Add receiver stations to an existing plot

Description

Add receiver stations to an existing plot

Usage

addStations(input, shape = 21, size = 1.5, colour = "white", fill = "black")

Arguments

input

The output of runRSP or dynBBMM

shape

The shape of the points

size

The size of the points

colour

The colour of the points

fill

The fill of the points

Value

A ggplot with stations

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 with acoustic stations
plotContours(dbbmm.data, tag = "A69-9001-1111", track = 1) + addStations(rsp.data)



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