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,
width = 48,
height = 48,
keep.asp = TRUE,
just = c("center", "center"),
as.local = TRUE,
...
)
marker_icon()
file |
character value/vector containing the file path(s) or url(s). |
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: |
as.local |
if the |
... |
arguments passed on to |
icon data (see icons
)
tm_symbols
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.