rcosmo (version 1.1.2)

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

Arguments

cmbdf
win1
win2
intensities

A CMBDataFrame column with measured values.

Value

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

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
# NOT RUN {
## 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)

# }

Run the code above in your browser using DataLab