dfplot2: Display fitted distribution function

Description Usage Arguments Value Author(s) See Also

View source: R/dfplot2.R

Description

This function displays a one-dimensional distribution function fitted using dffit.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
dfplot2(
  survey,
  xlab = "Observable x1",
  ylab = "Observable x2",
  xlim = NULL,
  ylim = NULL,
  p.ref = NULL,
  xpower10 = TRUE,
  ypower10 = TRUE,
  show.data = TRUE,
  show.data.err = TRUE,
  show.gdf = TRUE,
  show.gdf.contours = TRUE,
  show.scd.contours = TRUE,
  contour.levels = c(0.5, 0.2, 0.1),
  col.data = "black",
  cex.data = 0.5,
  pch.data = 20,
  col.data.err = "#00000030",
  lwd.data.err = 1,
  lty.data.err = 1,
  col.gdf = "blue",
  col.gdf.contours = col.gdf,
  lwd.gdf.contours = 1,
  lty.gdf.contours = 2,
  gamma.gdf = 0.2,
  col.scd.contours = "purple",
  lwd.scd.contours = 1,
  lty.scd.contours = 1,
  col.ref.contours = "red",
  lwd.ref.contours = 1,
  lty.ref.contours = 2,
  margins = c(5.1, 4.1, 4.1, 2.1)
)

Arguments

survey

List produced by dffit

xlab, ylab

axis labels

xlim, ylim

2-element vectors with plotting ranges

p.ref

Optional vector of parameters of a reference mdeol to be displayed.

xpower10

If TRUE, the 1st model argument is elevated to the power of 10 in the plots.

ypower10

If TRUE, the 2nd model argument is elevated to the power of 10 in the plots.

show.data

Logical flag to show/hide the observed data.

show.data.err

Logical flag to show/hide the measurement errors of the

show.gdf

Logical flag to show/hide the best fitting model of the generative distribution function as gradual shading.

show.gdf.contours

Logical flag to show/hide the best fitting model of the generative distribution function as iso-contours.

show.scd.contours

Logical flag to show/hide the source count density (for data with no measurement errors) predicted by the best fitting model.

contour.levels

Vector specifying the fractions of the integrated densities contained inside the contours of the gdf and scd.

col.data

Color (see plot) of data points.

cex.data

Size (see plot) of data points.

pch.data

Point type (see plot) of data points.

col.data.err

Color (see plot) of error ellipses of data.

lwd.data.err

Line width (see plot) of error ellipses of data.

lty.data.err

Line type (see plot) of error ellipses of data.

col.gdf

Color (see plot) of best fitting generative distribution function.

col.gdf.contours

Color (see plot) of best fitting generative distribution function contours.

lwd.gdf.contours

Line width (see plot) of best fitting generative distribution function contours.

lty.gdf.contours

Line type (see plot) of best fitting generative distribution function contours.

gamma.gdf

Scalar value >0 specifying the brightness-scale of the best fitting generative distribution function.

col.scd.contours

Color (see plot) of the source count density contours predicted by the best fitting model.

lwd.scd.contours

Line width (see plot) of the source count density contours predicted by the best fitting model.

lty.scd.contours

Line type (see plot) of the source count density contours predicted by the best fitting model.

col.ref.contours

Color (see plot) of the reference model contours specified by p.ref.

lwd.ref.contours

Line width (see plot) of the reference model contours specified by p.ref.

lty.ref.contours

Line type (see plot) of the reference model contours specified by p.ref.

margins

Margins (bottom,left,top,right)

Value

Returns the input list survey.

Author(s)

Danail Obreschkow

See Also

For an full example of dfplot2 run dfexample(4).


obreschkow/dftools documentation built on June 25, 2021, 10:45 p.m.