qqnormWin: Normal QQ plot for 'CMBWindow'

Description Usage Arguments Details Value References Examples

View source: R/Statistics.R

Description

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

Usage

1
qqnormWin(cmbdf, win, intensities = "I")

Arguments

cmbdf

A CMBDataFrame.

win

A CMBWindow

intensities

A CMBDataFrame column with measured values.

Details

qqnormWin returns a normal QQ plot of for the specified CMBDataFrame column intensities and CMBWindow region. The function automatically adds a line of a “theoretical” normal quantile-quantile plot.

Value

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

References

qqnorm, qqplot, qqplotWin

Examples

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

# win1 <- CMBWindow(theta = c(0,pi/2,pi/2), phi = c(0,0,pi/2))
# qqnormWin(cmbdf, win1)

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