plot.CMBWindow: Visualise a 'CMBWindow'

Description Usage Arguments Examples

View source: R/CMBWindowGenerics.R

Description

Visualise a CMBWindow

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class 'CMBWindow'
plot(
  x,
  add = TRUE,
  type = "l",
  col = "red",
  size = 2,
  box = FALSE,
  axes = FALSE,
  aspect = FALSE,
  back.col,
  depth_test = "always",
  ...
)

Arguments

x

A CMBWindow.

add

if TRUE then this plot will be added to any existing plot. Note that if back.col (see below) is specified then a new plot window will be opened and add = TRUE will have no effect

type

a single character indicating the type of item to plot. Supported types are: 'p' for points, 's' for spheres, 'l' for lines, 'h' for line segments from z = 0, and 'n' for nothing.

col

specify the colour(s) of the plotted points

size

the size of plotted points

box

whether to draw a box

axes

whether to draw axes

aspect

either a logical indicating whether to adjust the aspect ratio, or a new ratio.

back.col

specifies the background colour of the plot. This argument is passed to rgl::bg3d.

depth_test

The depth test to be applied. This controls how resistant the plotted object is to being obscured. See rgl.material

...

arguments passed to rgl::plot3d

Examples

1
2
3
4
win1 <- CMBWindow(theta = c(0,pi/2,pi/2), phi = c(0,0,pi/2))
win2 <- CMBWindow(theta = c(2*pi/3,3*pi/4,3*pi/4, 2*pi/3), phi = c(pi/4,pi/4,pi/3,pi/3))
plot(win1)
plot(win2)

rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.