addMarker: Add Icons to a Map or RgoogleMap Plot

View source: R/addMarker.R

addMarkerR Documentation

Add Icons to a Map or RgoogleMap Plot

Description

Adds a marker to a plot or map – an RgoogleMaps map object or Raster* object.

Usage

addMarker(longitude, latitude, color = "red", map = NULL, expansion = 1, ...)

Arguments

longitude

vector of longitudes

latitude

vector of latitudes

color

marker color: 'red', 'green', 'yellow', 'orange', or 'blue'. Also includes AQI category colors, specified 'AQI[number]' eg. 'AQI1'

map

optional RgoogleMaps map object or Raster* object

expansion

icon expansion factor. Ignored if width and height are specified.

...

arguments passed on to rasterImage

Examples

## Not run: 
library(PWFSLSmoke)

monitor_map(Camp_Fire)

addMarker(
  longitude = -121.437222,
  latitude = 39.810278,
  color = "red",
  expansion = 1
)

## End(Not run)

MazamaScience/PWFSLSmoke documentation built on July 3, 2023, 11:03 a.m.