The goal of EMODnetBiologyMaps is to create ggplot2 maps of using the EMODnet style:
You can install the development version of EMODnetBiologyMaps with:
devtools::install_github("EMODnet/EMODnetBiologyMaps")
# devtools::install_github("lifewatch/eurobis")
library(EMODnetBiologyMaps)
library(eurobis)
# Retrieve grid data for "Eriocheir sinensis" (AphiaID = 126426) using the eurobis package
points <- getEurobisGrid(aphiaid = 126426, gridsize = '1d')
# Render ggplot2 map
map <- emodnet_map_plot(points, fill = points$RecordCount, title = "Engraulis encrasicolus", subtitle = "AphiaID 126426", legend = "Abundance", zoom = FALSE, option = "viridis")
# Save with EMODnet logo
emodnet_map_logo(map, path = "./data-raw/map1.png", width = 198, height = 121, dpi = 300, units = "mm", gravity = "northeast", offset = "+650+200", color = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.