plotSat {momentuHMM} | R Documentation |
Plot observations on satellite image
Description
Plot tracking data on a satellite map. This function plots coordinates in longitude
and latitude (not UTM), so if data
coordinates are not provided in longitude and latitude, then the coordinate reference system must be provided using the projargs
argument. This function uses the package ggmap
to fetch a satellite image from Google. An Internet connection is required to use
this function.
Usage
plotSat(
data,
zoom = NULL,
location = NULL,
segments = TRUE,
compact = TRUE,
col = NULL,
alpha = 1,
size = 1,
shape = 16,
states = NULL,
animals = NULL,
ask = TRUE,
return = FALSE,
stateNames = NULL,
projargs = NULL
)
Arguments
data |
Data frame or |
zoom |
The zoom level, as defined for |
location |
Location of the center of the map to be plotted (this must be in the same coordinate reference system as |
segments |
|
compact |
|
col |
Palette of colours to use for the dots and segments. If not specified, uses default palette. |
alpha |
Transparency argument for |
size |
Size argument for |
shape |
Shape argument for |
states |
A sequence of integers, corresponding to the decoded states for these data (such that the observations are colored by states). |
animals |
Vector of indices or IDs of animals/tracks to be plotted.
Default: |
ask |
If |
return |
If |
stateNames |
Optional character vector of length |
projargs |
A character string of PROJ.4 projection arguments indicating the coordinate reference system for |
Details
If the plot displays the message "Sorry, we have no imagery here", try a lower level of zoom.
References
D. Kahle and H. Wickham. ggmap: Spatial Visualization with ggplot2. The R Journal, 5(1), 144-161. URL: http://journal.r-project.org/archive/2013-1/kahle-wickham.pdf