qqplotWin: Quantile-Quantile plots for 'CMBWindow's

Description Usage Arguments Details Value References Examples

View source: R/Statistics.R

Description

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

Usage

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

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.

Value

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

References

qqnormWin, qqnorm, qqplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Download the map first
# downloadCMBMap(foreground = "smica", nside = 1024)
# df <- CMBDataFrame("CMB_map_smica1024.fits")
# cmbdf <- sampleCMB(df, sample.size = 10000)

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

# qqplotWin(cmbdf, win1, win2)

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