Description Usage Arguments Examples
Add sources to dynamic map
1 2 3 4 5 6 7 8 9 10 | overlay_sources(
myplot,
lon,
lat,
icon_url = NULL,
icon_width = 20,
icon_height = 20,
icon_anchor_x = 10,
icon_anchor_y = 10
)
|
myplot |
dynamic map produced by |
lon, lat |
longitude and latitude of sources. |
icon_url |
what image to use for the icon. |
icon_width, icon_height |
the width and height of the icon. |
icon_anchor_x, icon_anchor_y |
the coordinates of the "tip" of the icon (relative to
its top left corner, i.e. the top left corner means |
1 2 3 4 5 6 | source_locations <- mysim$record$true_source
plot1 <- plot_map()
plot1 <- overlay_sources(myplot = plot1,
lon = source_locations$longitude,
lat = source_locations$latitude)
plot1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.