add_ggplot: Add ggplot2 elements to a plotdap object

Description Usage Arguments Value Examples

View source: R/add_ggplot.R

Description

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

Usage

1

Arguments

plot

a plotdap object.

...

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

Value

A plotdap object

Examples

1
2
3
4
5
6
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. 29, 2020, 1:07 a.m.