Description Usage Arguments Author(s) Examples
View source: R/plotAllTagsSite.R
Plot deployment (ordered by latitude) vs time (UTC) for each tag
1 | plotAllTagsSite(data, coordinate = "recvDeployLat", tagsPerPanel = 5)
|
data |
a selected table from .motus data, eg. "alltags", or a data.frame of detection data including at a minimum variables for recvDeployName, fullID, mfgID, date/time, latitude or longitude |
coordinate |
column of receiver latitude/longitude values to use, defaults to recvDeployLat |
tagsPerPanel |
number of tags in each panel of the plot, default is 5 |
Zoe Crysler zcrysler@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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 detections of dataframe df.alltags by site ordered by latitude, with default 5 tags per panel
plotAllTagsSite(df.alltags)
Plot detections of dataframe df.alltags by site ordered by latitude, with 10 tags per panel
plotAllTagsSite(df.alltags, tagsPerPanel = 10)
Plot detections of tbl file tbl.alltags by site ordered by receiver deployment latitude
plotAllTagsSite(tbl.alltags, coordinate = "recvDeployLon")
Plot tbl file tbl.alltags using gpsLat and 3 tags per panel for select species Red Knot
plotAllTagsSite(filter(tbl.alltags, speciesEN == "Red Knot"), coordinate = "gpsLat", tagsPerPanel = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.