emodnet_map_logo: Add the EMODnet logo to your ggplot

Description Usage Arguments Value Examples

View source: R/emodnet_map_logo.R

Description

Add the EMODnet logo to your ggplot

Usage

1
2
3
4
5
6
7
8
(
  plot,
  path = NULL,
  gravity = "northeast",
  offset = "+0+0",
  color = TRUE,
  ...
)

Arguments

plot

ggplot

path

character

gravity

character

offset

character

color

boolean

...

params to be passed to ggplot2::ggsave()

Value

png

Examples

1
2
3
4
5
6
7
8
9
aphiaid <- 107451
specname <- "Eriocheir sinensis"
Esgrid <- sf::st_read(paste0("http://geo.vliz.be/geoserver/wfs/ows?", "service=WFS&version=1.3.0&",
"request=GetFeature&", "typeName=Dataportal%3Aeurobis_grid_1d",
"-obisenv&", "viewParams=aphiaid%3A", aphiaid, "&", "outputFormat=json", "&maxFeatures=10"))
plot <- emodnet_map_plot(Esgrid, fill = Esgrid$RecordCount,  title = specname,
subtitle = paste("Aphiaid =",aphiaid), legend = "Abundance",plot_polygon_border=TRUE)
(plot, path = paste0(tempfile(), ".png"),
width = 198, height = 121, dpi = 300, units = "mm")

EMODnet/EMODnetBiologyMaps documentation built on Aug. 12, 2021, 7:47 p.m.