plotAngDis: Plot angular scatterplots and means

Description Usage Arguments Value Examples

View source: R/Statistics.R

Description

For specified measurements from CMBDataFrame this function produces scatterplots and binned means versus theta and phi angles.

Usage

1
plotAngDis(cmbdf, intensities = "I")

Arguments

cmbdf

A CMBDataFrame object.

intensities

The name of a column of cmbdf, containing measured values.

Value

2x2 plot. The first row shows scatterplots. The second row gives barplots of the corresponding means computed over bins. The first column corresponds to the values of theta and the second one is for psi.

Examples

1
2
3
4
5
6
7
8
9
## Download the map first
# downloadCMBMap(foreground = "smica", nside = 1024)
# df <- CMBDataFrame("CMB_map_smica1024.fits")
# df.sample <- CMBDataFrame(df, sample.size = 80000)
# win <- CMBWindow(theta = c(pi/4,pi/2,pi/2,pi/4), phi = c(0,0,pi/2,pi/2))
# cmbdf.win <- window(df.sample, new.window = win)
#
# intensities <- "I"
# plotAngDis(cmbdf.win, intensities)

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