View source: R/CMBWindowGenerics.R
| plot.CMBWindow | R Documentation | 
CMBWindowVisualise a CMBWindow
## 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", ... )
| x | A CMBWindow. | 
| add | if TRUE then this plot will be added to any existing plot.
Note that if  | 
| 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  | 
| ... | arguments passed to rgl::plot3d | 
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.