s2plot: Plot an object on the sphere

Description Usage Arguments Value Examples

View source: R/s2plot.R

Description

Plot an object on the sphere

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
s2plot(
  geog,
  ...,
  projection = s2plot_projection_default(geog, add),
  xlim = NULL,
  ylim = NULL,
  par = s2plot_par_default(),
  add = FALSE
)

s2plot_par_default()

Arguments

geog

A s2::as_s2_geography()

...

Passed to graphics functions.

projection

Right now s2plot_projection_orthographic() is the only projection. The default is either calculated based on the s2::s2_centroid_agg() of geog or the last used projection if add = TRUE.

xlim, ylim

Limits in projected space.

par

Graphical graphics::par() to set prior to plotting

add

Add to the current plot? Use FALSE to create a new plot.

Value

x, invisibly

Examples

1
2
s2plot(s2::s2_data_countries())
s2plot(s2::s2_data_cities("London"), pch = 16, add = TRUE)

paleolimbot/s2plot documentation built on July 10, 2020, 12:35 a.m.