Learn R Programming

s2 (version 1.1.7)

s2_plot: Plot S2 Geographies

Description

Plot S2 Geographies

Usage

s2_plot(
  x,
  ...,
  asp = 1,
  xlab = "",
  ylab = "",
  rule = "evenodd",
  add = FALSE,
  plot_hemisphere = FALSE,
  simplify = TRUE,
  centre = NULL
)

Value

The input, invisibly

Arguments

x

A wkb() or wkt()

...

Passed to plotting functions for features: graphics::points() for point and multipoint geometries, graphics::lines() for linestring and multilinestring geometries, and graphics::polypath() for polygon and multipolygon geometries.

asp, xlab, ylab

Passed to graphics::plot()

rule

The rule to use for filling polygons (see graphics::polypath())

add

Should a new plot be created, or should handleable be added to the existing plot?

plot_hemisphere

Plot the outline of the earth

simplify

Use FALSE to skip the simplification step

centre

The longitude/latitude point of the centre of the orthographic projection

Examples

Run this code
s2_plot(s2_data_countries())
s2_plot(s2_data_cities(), add = TRUE)

Run the code above in your browser using DataLab