loadMap: Mapping Function.

Description Usage Arguments Examples

Description

Function set up to work in near real-time, where (multiple) files can be created and saved to a working directory or data come from inside R environment. Summaries use the last seven days.

Usage

1
2
loadMap(x, multiple.files = FALSE, set.date, time.zone, obs, id, tier = NA,
  lat, lon, statistic = "latest", dest, leaflet.title = "Leaflet Map")

Arguments

x

Either the file in R (default) or the location of a list of files to upload (if multuple.files is set to 'TRUE').

multiple.files

An option if multiple files saved locally are to be plotted. Can be useful if there are a few daily files saved that need combining. This option is useful if the function is to run continuously.

set.date

Latest date for the examined sample.

time.zone

Time zone of the location (e.g. 'Pacific/Auckland').

obs

Column under observation. Should be a numeric value. Can be multiple columns (e.g. "c("colA","colB")).

id

Identifier column (e.g. site location name).

tier

An additional identifier column, if needed (e.g. different measurement techniques).

lat

Latitude.

lon

Longitude.

statistic

Choice of summary statistic. Options are 'latest' (default), 'mean', 'median', 'sd', 'min', and 'max'.

dest

Location where the interactive map will be saved on the local drive.

leaflet.title

A descriptor of the leaflet used in naming the HTML output.

Examples

1

gmiskell/sensor_toolkit documentation built on May 17, 2019, 7:06 p.m.