Learn R Programming

rcosmo (version 1.1.6)

qqplotWin: Quantile-Quantile plots for CMBWindows

Description

This function is a modification of standard qqplot functions to work with CMBWindow regions.

Usage

qqplotWin(cmbdf, win1, win2, intensities = "I")

Value

A list with quantile components x and y and a QQ plot with a diagonal line

Arguments

cmbdf

A CMBDataFrame.

win1

A CMBWindow

win2

A CMBWindow

intensities

A CMBDataFrame column with measured values.

Details

qqplotWin produces a QQ plot of quantiles of observations in two CMBWindows against each other for the specified CMBDataFrame column intensities. The function automatically adds a diagonal line.

References

qqnormWin, qqnorm, qqplot

Examples

Run this code
set.seed(1)
cmbdf <- CMBDataFrame(nside = 8, I = rnorm(12 * 8^2), ordering = "nested")
win1 <- CMBWindow(theta = c(0, pi/2, pi/2), phi = c(0, 0, pi/2))
win2 <- CMBWindow(theta = c(pi/2, pi, pi/2), phi = c(0, 0, pi/2))
qqplotWin(cmbdf, win1, win2)

Run the code above in your browser using DataLab