add_ggplot: Add ggplot2 elements to a plotdap object

View source: R/add_ggplot.R

add_ggplotR Documentation

Add ggplot2 elements to a plotdap object

Description

add_ggplot allows for plotdap ggplot maps to be modified by further ggplot2 settings

Usage

add_ggplot(plot, ...)

Arguments

plot

a plotdap object.

...

arguments passed along to geom_sf() (if method='ggplot2', otherwise ignored).

Value

A plotdap object

Examples


p <- plotdap(
  crs = "+proj=laea +y_0=0 +lon_0=155 +lat_0=-90 +ellps=WGS84 +no_defs")
p <- add_ggplot(
 p,
 ggplot2::theme_bw()
)



plotdap documentation built on Oct. 18, 2023, 1:15 a.m.