mfplot: Display fitted galaxy mass function

Description Usage Arguments Value Author(s) See Also

View source: R/mfplot.R

Description

This function displays the galaxy mass function (MF) fitted using mffit.

Usage

1
2
3
4
5
6
7
mfplot(mf, nbins = NULL, bin.xmin = NULL, bin.xmax = NULL, bin.type = 1,
  xlab = expression("M [M"["sun"] * "]"), ylab = expression(phi ~ "[Mpc"^-3
  ~ "dex"^-1 ~ "]"), xlim = NULL, ylim = NULL, show.uncertainties = TRUE,
  uncertainty.type = NULL, show.bias.correction = FALSE, add = FALSE,
  col = "blue", lwd = 1.5, lty = 1, col.bin = "black",
  col.bias.correction = col, lwd.bias.correction = lwd,
  lty.bias.correction = 2, margins = c(5.1, 4.1, 4.1, 2.1))

Arguments

mf

List produced by mffit

nbins

Number of bins to be plotted. This is purely for illustrative purposes. The fitting does not use bins. Choose nbins=NULL (default) to determine the number of bins automatically or nbins=0 to suppress the bins.

bin.xmin

Left edge of first bin

bin.xmax

Right edge of last bin

bin.type

Integer value defining the type of data to be plotted in bins. 1 = plot raw input masses with Veff values evaluted at these masses, subject to Eddington bias. 2 = plot random masses sampled from posterior mass PDF with corresponding values Veff. 3 = posterior source counts using the full posterior mass PDFs of all sources.

xlab

x-axis label

ylab

y-axis label

xlim

2-element vector with x-axis plotting limits

ylim

2-element vector with y-axis plotting limits

show.uncertainties

If TRUE, uncertainties are displayed around the best fit model.

uncertainty.type

1: plot Gaussian 1-sigma uncertanties propagated from the Hessian matrix of the likelihood. 2: plot 68 percentile region (from 16 to 84 percent). 3 plot 68 (16 to 84) and 95 (2 to 98) percentile regions.

add

If TRUE, the lines are overplotted on the currently open plot.

col

Color of ML fit and uncertainty regions

lwd

Line width of ML fit

lty

Line type of ML fit

col.bias.correction

Line properties of bias corrected MF fit

lwd.bias.correction

Line properties of bias corrected MF fit

lty.bias.correction

Line properties of bias corrected MF fit

margins

Margins (bottom,left,top,right)

Value

If used as mf = mfplot(mf) (with nbins=NULL or nbins>0), the list mf is appended an additional entry bin, containing the binned galaxy data points.

Author(s)

Danail Obreschkow

See Also

See examples in dffit.


obreschkow/gdftools documentation built on June 10, 2017, 12:40 a.m.