View source: R/visualization.R
| plot_map_taiwan | R Documentation |
Plot sampling sites on a map of Taiwan with a north arrow and scale bar.
plot_map_taiwan(
long,
lat,
names,
color = "darkgrey",
textsize = 5,
basesize = 16,
shape_type = 22
)
long |
Numeric vector of longitudes. |
lat |
Numeric vector of latitudes. |
names |
Character vector of site labels (same length as |
color |
Fill colour for site markers. Default |
textsize |
Size for annotation and point labels. Default 5. |
basesize |
Base font size for the map theme. Default 16. |
shape_type |
ggplot2 point shape number. Default 22 (filled square). |
A ggplot object (also printed to the active device).
## Not run:
plot_map_taiwan(
long = c(120.2, 121.5),
lat = c(22.9, 24.1),
names = c("Site A", "Site B")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.