siteMap | R Documentation |
Draw a map (from the R
Package maps
) showing the defined
stationary sites
siteMap(
crds,
site,
type = "points",
quantiles = c(0.25, 0.75),
xlim = NULL,
ylim = NULL,
hull = TRUE,
palette = "rainbow",
...
)
crds |
a |
site |
a |
type |
either points, or cross to show all points for each site or only show the mean position of the site with standard deviation. |
quantiles |
the quantile of the error bars (cross) around the median. |
xlim |
Longitude limits of map. |
ylim |
Latitude limits of map. |
hull |
|
palette |
Color palette for sites. |
... |
Arguments to be passed to methods, such as graphical parameters (see par). |
Standard graphical paramters like pch
, cex
, lwd
, lty
and col
are implemented.
The color can be specified as either a vector of colors (e.g. c("blue", "red", ...)) or as a character string indicating a color ramp (at the moment only "random" and "rainbow" is available )
Simeon Lisovski & Tamara Emmenegger
data(hoopoe2)
hoopoe2$tFirst <- as.POSIXct(hoopoe2$tFirst, tz = "GMT")
hoopoe2$tSecond <- as.POSIXct(hoopoe2$tSecond, tz = "GMT")
crds <- coord(hoopoe2, degElevation = -6)
filter <- distanceFilter(hoopoe2, distance = 30)
site <- changeLight(hoopoe2, rise.prob = 0.1, set.prob = 0.1, plot = FALSE,
summary = FALSE)$site
try(siteMap(crds[filter,], site[filter], linewidth=2, shape=20, size=0.5, main="hoopoe2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.