Create Map Symbols for 'leaflet' maps
makeSymbol(
shape,
width,
height = width,
color,
fillColor = color,
opacity = 1,
fillOpacity = opacity,
...
)makeSvgUri(svg, width, height, strokeWidth)
makeSymbolIcons(
shape,
color,
fillColor = color,
opacity,
fillOpacity = opacity,
strokeWidth = 1,
width,
height = width,
...
)
addSymbols(
map,
lng,
lat,
values,
shape,
color,
fillColor = color,
opacity = 1,
fillOpacity = opacity,
strokeWidth = 1,
width = 20,
height = width,
dashArray = NULL,
data = leaflet::getMapData(map),
...
)
addSymbolsSize(
map,
lng,
lat,
values,
shape,
color,
fillColor = color,
opacity = 1,
fillOpacity = opacity,
strokeWidth = 1,
baseSize = 20,
data = leaflet::getMapData(map),
...
)
sizeNumeric(values, baseSize)
sizeBreaks(values, breaks, baseSize, ...)
makeSymbolsSize(
values,
shape = "rect",
color,
fillColor,
opacity = 1,
fillOpacity = opacity,
strokeWidth = 1,
baseSize,
...
)
HTML svg element
the desired shape of the symbol, See availableShapes
in pixels
in pixels
stroke color
fill color
stroke opacity
fill opacity
arguments to pass to pretty
inner svg tags for symbol
stroke width in pixels
a map widget object created from 'leaflet'
a numeric vector of longitudes, or a one-sided formula of the form ~x
where x
is a variable in data
; by default
(if not explicitly provided), it will be automatically inferred from data
by looking for a column named lng
, long
, or longitude
(case-insensitively)
a vector of latitudes or a formula (similar to the lng
argument; the
names lat
and latitude
are used when guessing the latitude
column from data
)
the values used to generate shapes; can be omitted for a single type of shape
a string or vector/list of strings that defines the stroke dash pattern
the data object from which the argument values are derived; by default, it
is the data
object provided to leaflet()
initially, but can be
overridden
re-scaling size in pixels of the mean of the values, the average value will be this exact size
an integer specifying the number of breaks or a numeric vector of the breaks; if a named vector then the names are used as labels.