powered by
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 )
A ggplot object (also printed to the active device).
ggplot
Numeric vector of longitudes.
Numeric vector of latitudes.
Character vector of site labels (same length as long).
long
Fill colour for site markers. Default "darkgrey".
"darkgrey"
Size for annotation and point labels. Default 5.
Base font size for the map theme. Default 16.
ggplot2 point shape number. Default 22 (filled square).
if (FALSE) { plot_map_taiwan( long = c(120.2, 121.5), lat = c(22.9, 24.1), names = c("Site A", "Site B") ) }
Run the code above in your browser using DataLab