iplot.s2polygon: Plot a spherical polygon on an interactive sphere With...

View source: R/s2plotting.R

iplot.s2polygonR Documentation

Plot a spherical polygon on an interactive sphere With rotation and zoom

Description

Plot a spherical polygon on an interactive sphere using threejs::globejs().

Usage

## S3 method for class 's2polygon'
iplot(x, ..., use_png = FALSE, eps = pi * s2radius(x))

Arguments

x

Spherical polygon of class "s2polygon", a list of loops on the sphere or something interpretable as such.

...

Additional parameters passed to threejs::globejs() to control the appearance of the plot. For instance img can be a file path to an image to wrap on the sphere, and arcsLwd, and arcsColor control the appearance of the plotted lines. When image = FALSE the argument arcsHeight controls the height above the sphere of the lines.

use_png

Logical to plot the polygon on an png image which is then wrapped on the sphere.

eps

Maximum distance between consecutive plotted vertices in the polygon. For vertices separated by more than eps interpolating points will be inserted. Default value corresponds to no interpolation.


spatstat/spatstat.sphere documentation built on Jan. 27, 2023, 2:59 a.m.