50_duv_plotting_functions: Plots of Discrete Univariate Models

Description Usage Arguments References See Also Examples

Description

Plots of discrete univariate probability distributions.

Usage

1
2
3
4
5
6
plot_dpd (sf, data=FALSE, ...,
    main, xlab, ylab,
    xlim, ylim,
    add=FALSE, axes=TRUE,
    combine = is.dks (sf), freq=FALSE, n, space=0,
    line.width, line.color, fill.color)

Arguments

sf

A suitable function object.
Here, this is a discrete univariate probability distribution.

Refer to the references and see also sections.

data

Logical, if true, include a subpanel with the data bars.
Ignored, if sf is a quantile function or a conditional distribution.

main, xlab, ylab

Optional strings, main/axes titles.

xlim, ylim

Optional length-2 numeric vectors, giving the plot ranges.

add

Logical, if true, add to an existing plot.

axes

Logical vector of length one or two, if true, plot axis ticks with labels.

combine

Logical, if true, combine the bars.

freq

Logical, if true, plot frequencies.
Currently, ignored in quantile functions.

n

An integer, representing the sample size, and is ignored except for PMFs/CDFs with freq set to TRUE.
(If missing, it defaults to the number of observations used, or the sum of their frequencies).

space

Numeric, the space (in mm) between the bars.
Ignored, if combine is true.

line.width

Optional numeric, giving the main line width.
If missing, determined by global options.

line.color, fill.color

Optional (R color) strings, giving the main line color and main fill color.
If missing, determined by global options.

...

Ignored.

References

Refer to the vignette for an overview, references and better examples.

See Also

set.ph.options

ph.plotf.dksuv, ph.plotf.catuv

Examples

1
2
3
4
5
6
prep.ph.data ()

dfh <- pmfuv.dks (traffic.bins, traffic.freq)

plot (dfh)
plot (dfh, TRUE)

probhat documentation built on May 12, 2021, 5:08 p.m.