tmap_icons | R Documentation |
Specifies icons from a png images, which can be used as markers in thematic maps.
The function marker_icon()
is the specification of the default marker.
tmap_icons(
file,
names = NULL,
width = 48,
height = 48,
keep.asp = TRUE,
just = c("center", "center"),
merge = NA,
as.local = TRUE,
...
)
marker_icon()
file |
character value/vector containing the file path(s) or url(s). |
names |
names to be given to the icons. Useful when icons are assigned to factor levels. |
width |
width of the icon. If |
height |
height of the icon. If |
keep.asp |
keep the aspect ratio of the png image. If |
just |
justification of the icons relative to the point coordinates.
The first value specifies horizontal and the second value vertical justification.
Possible values are: |
merge |
merge icons to one icon list (see return value)? If |
as.local |
if the |
... |
arguments passed on to |
icon data (see leaflet::icons()
)
tm_symbols()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.