Description Usage Arguments Value Examples
This is a wrapper around the ggmap
function that plots a movetrack
object (including with multiple individuals).
1 |
movetrack |
a |
... |
additional parameters to pass to |
id |
a vector of individuals to map (default = NULL - plots all individuals) |
individually |
whether to produce plots individually (TRUE) or as a population (FALSE; default). |
projection |
one of the options from |
print |
whether or not to print map. Default TRUE |
exportPDF |
a logical indicating whether or not to export plots as a PDF (default = FALSE). |
zoom |
the zoom level - an integer from 3 (continent) to 21 (building) - or (by default) automatically selected as one level lower than the output of |
luminance |
the default colors are richer than the pale ggplot palette which is often hard to see on maps. |
if print = FALSE
, will return the ggmap object, otherwise, returns nothing. If exportPDF = TRUE
outputs a single PDF of all individuals or a population to the working directory.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ### Enter Login and Password information for Movebank
## Not run:
# login <- movebankLogin(username="xxxx", password="xxxx")
# Pull data from movebank
ge1 <- getMovebankData(study="ABoVE: HawkWatch International Golden Eagles", login=login) #multiple birds
# Estimate daily mean locations
ge1.dailymean <- processMovedata(ge1, id = "individual_id", dailymean = TRUE)
# Three convenient "movetrack" methods:
summary(ge1.dailymean)
plot(ge1.dailymean)
map(ge1.dailymean)
# one bird, three deployments
ge2 <- getMovebankData(study="Aquila chrysaetos interior west N. America, Craigs, Fuller", animalName="629-26704", login=login)
# all locations and all columns
ge2.dailymean <- processMovedata(ge2, id = "individual_id", keepCols = "all")
summary(ge2.dailymean)
plot(ge2.dailymean, id = ge2.dailymean$id[1])
map(ge2.dailymean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.