globe | R Documentation |
Plot Globe with Locator Pin for Berlin (while preserving polygons in orthographic view)
globe(
center = c(13.405, 52.52),
col_earth = "#a5bf8b",
col_water = "#96b6d8",
col_pin = "black",
size_pin = 1.2,
bg = TRUE
)
center |
A vector with longitude and latitude (WGS 84) used to center the globe and for the locator circle. |
col_earth |
A hex code. Color used for continents. |
col_water |
A hex code. Color used for oceans. |
col_pin |
A hex code. Color used for te locator circle. |
size_pin |
A positive number indicating the symbol size and stroke of the locator circle. |
bg |
A Boolean. Should a background be added to the globe? |
A ggplot object containing a locator globe with pin.
## Not run:
globe()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.