plot.sphwin: Plot a Spherical Window

View source: R/plotting.R

plot.sphwinR Documentation

Plot a Spherical Window

Description

Plots a spherical window, representing a region on the sphere.

Usage

 ## S3 method for class 'sphwin'
plot(x, ..., eye, top, add = FALSE)

Arguments

x

Object of class "sphwin" representing a region on the sphere.

...

Additional graphics parameters.

eye

Spatial position of the viewer. Either a numeric vector of length 2 (interpreted as giving colatitude and longitude respectively in radians), or a numeric vector of length 3 (interpreted as the three-dimensional Cartesian coordinates) or a list with entries lon and lat giving longitude and latitude coordinates in degrees.

top

Location on the sphere that should be at the top of the plot. Same format as eye. Defaults to the North Pole.

add

Logical value indicating whether to add the window to an existing plot. This will only work correctly if the same values of eye and top are used in both plots.

Details

The plot shows the half of the sphere that is visible from the eye position (i.e. all locations u for which d(u,eye) <= pi*rho/2, where rho is the radius of the sphere).

Value

Null.

Author(s)

Adrian Baddeley.

See Also

plot.sp2, sphwin.

Examples

  sphcap <- sphwin(type="band", param=c(0, pi/3), ref=c(pi/8,pi/6))
  plot(sphcap)

baddstats/spherstat documentation built on Feb. 6, 2023, 1:45 a.m.