plotPIT: Plot PIT histograms

View source: R/plotPIT.R

plotPITR Documentation

Plot PIT histograms

Description

Plot PIT histograms

Usage

plotPIT(
  Z,
  dist = c("norm", "t"),
  shape = 2,
  col = 5,
  breaks = 10,
  title = "",
  label = 0,
  gPars = ErrViewLib::setgPars()
)

Arguments

Z

(vector) a set of z-zscores

dist

(string) a distribution

shape

(numeric) shape parameter (> 0, maybe non-integer).

col

(integer) a color number for the histigram

breaks

(integer) number of breaks in the histogram

title

(string) a title for the plot

label

(integer) index of letter for subplot tag

gPars

(list) graphical parameters

Value

a plot

Examples


  uE  = sqrt(rchisq(1000, df = 4))  # Re-scale uncertainty
  E   = rnorm(uE, mean=0, sd=uE)    # Generate errors
  plotPIT(E/uE)


ppernot/ErrViewLib documentation built on June 1, 2024, 4:33 a.m.