ggooglemaps_polyline: A method to write a polyline to a map

Description Usage Arguments Value

View source: R/ggooglemaps.R

Description

A polyline is equivalent to the lines function. The line is specified as a data frame or matrix of latituted and longitude pairs. The options include stroke values.

Usage

1
2
ggooglemaps_polyline(path, stroke = list(color = "#0000FF", opacity = 1,
  weight = 2), map, ...)

Arguments

path

a matrix or data frame of lat/lng pairs

stroke

A list with values for color (hex RGB), opacity a number in 0.0 to 1.0 and weight, a value for the weight of the stroke.

map

A ggooglemaps instance.

...

passed to init but ignored for now

Value

an instance of Ggooglemapspolyline


jverzani/gWidgetsWWW2 documentation built on Feb. 9, 2020, 5:18 p.m.