plotDailySiteSum: Plots number of detections and tags, daily, for a specified...

Description Usage Arguments Author(s) Examples

View source: R/plotDailySiteSum.R

Description

Plots total number of detections across all tags, and total number of tags detected per day for a specified site. Depends on siteSumDaily function.

Usage

1
plotDailySiteSum(data, recvDeployname)

Arguments

data

a selected table from .motus data, eg. "alltags", or a data.frame of detection data including at a minimum variables for motusTagID, sig, recvDeployname, ts

recvDeployname

name of site to plot

Author(s)

Zoe Crysler zcrysler@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
You can use either a selected tbl from .motus eg. "alltags", or a data.frame, instructions to convert a .motus file to all formats are below.
sql.motus <- tagme(176, new = TRUE, update = TRUE) # download and access data from project 176 in sql format
tbl.alltags <- tbl(sql.motus, "alltags") # convert sql file "sql.motus" to a tbl called "tbl.alltags"
df.alltags <- tbl.alltags %>% collect %>% as.data.frame() ## convert the tbl "tbl.alltags" to a data.frame called "df.alltags"

Plot of all tag detections at site Longridge using dataframe df.alltags
plotDailySiteSum(df.alltags, recvDeployname = "Longridge")

Plot of all tag detections at site Niapiskau using tbl file tbl.alltags
plotDailySiteSum(df.alltags, recvDeployname = "Niapiskau")

jbrzusto/motus documentation built on May 18, 2019, 7:03 p.m.