Learn R Programming

probhat (version 0.3.1)

51_duv_plotting_functions: Plots of Discrete Univariate Models

Description

Plots of discrete univariate probability distributions.

Usage

plot_dpd (sf, data=FALSE, ...,
    main, xlab, ylab,
    xlim, ylim,
    add=FALSE, axes=TRUE,
    combine=FALSE, freq, 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. Ignored, except for PMFs. Default depends on the object. Refer to the corresponding constructors.

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

plot.dksuv, plot.catuv

Examples

Run this code
# NOT RUN {
ph.data.prep ()

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

plot (dfh)
plot (dfh, TRUE)
# }

Run the code above in your browser using DataLab