plot.CMBWindow: Visualise a 'CMBWindow'

View source: R/CMBWindowGenerics.R

plot.CMBWindowR Documentation

Visualise a CMBWindow

Description

Visualise a CMBWindow

Usage

## 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


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)


frycast/rcosmo documentation built on Oct. 11, 2022, 5:21 p.m.