43_model_plot_methods: Model Plot Methods

Description Usage Arguments Details References See Also Examples

Description

Plots methods for models, excluding distribution sets.

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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
####################################
#discrete kernel smoothing models
#(call plot_dpd)
####################################
## S3 method for class 'dksuv'
ph.plotf(sf, data=FALSE, ...)

####################################
#continuous kernel smoothing models
#(call plot_cpd, plot_cpd_bv or plot_cpd_tv)
####################################
## S3 method for class 'cksuv'
ph.plotf(sf, data=FALSE, ...)
## S3 method for class 'cksmv'
ph.plotf(sf, in3d=FALSE, data=FALSE, ...)
## S3 method for class 'cksc'
ph.plotf(sf, ...)
## S3 method for class 'cksmvc'
ph.plotf(sf, in3d=FALSE, data=FALSE, ...)

####################################
#categorical models
#(call plot_dpd)
####################################
## S3 method for class 'catuv'
ph.plotf(sf, ...)
## S3 method for class 'catc'
ph.plotf(sf, ...)

####################################
#mixed input
####################################
## S3 method for class 'gmix'
ph.plotf(sf, ...)
## S3 method for class 'xmix'
ph.plotf(sf, ...)

####################################
#empirical-like models
#(call plot_cpd)
####################################
## S3 method for class 'eluv'
ph.plotf(sf, data=FALSE, ...)

####################################
#all continuous univariate models
####################################
## S3 method for class 'cpduv'
ph.linesf(sf, ..., xlim, n=200)

Arguments

sf

A probability distribution.
Refer to the references and see also sections.

in3d

Logical, if true, create a 3D plot.
Ignored, if sf has three or more random variables.

data

If true, include a subpanel with data bars/points.
Ignored, if x is a quantile function, a conditional distribution, or has three or more random variables

xlim

Length two numeric vector, giving plot range.
Currently, ignored for quantile functions.

n

Integer, number of points.

...

Other arguments for plot_dpd, plot_cpd, plot_cpd_bv and plot_cpd_tv.

Details

Refer to the vignette for more information.

Note that these methods call the functions plot_dpd, plot_cpd, plot_cpd_bv and plot_cpd_tv.
Please refer to these functions for more information.

References

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

See Also

Succinct Constructors
Discrete Kernel Smoothing, Continuous Kernel Smoothing
Categorical Distributions, Empirical-Like Distributions

plot_dpd, plot_cpd

plot_cpd_bv, plot_cpd_tv

Examples

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

dfh <- pmfuv.dks (traffic.bins, traffic.freq)
cfh <- pdfuv.cks (height)
cfh2 <- pdfmv.cks (trees2 [,-2])

plot (dfh, TRUE)
plot (cfh, TRUE)
plot (cfh2,, TRUE)

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