plot.epplab: Plot for an epplab Object

plot.epplabR Documentation

Plot for an epplab Object

Description

The function offers three informative plots for an epplab object.

Usage

## S3 method for class 'epplab'
plot(x, type = "kernel", angles = "radiants",
  kernel = "biweight", which = 1:10, as.table = TRUE, ...)

Arguments

x

Object of class epplab.

type

Type of plot, values are "kernel", "histogram" and "angles".

angles

Values are "degree" and "radiants", if type="angles".

kernel

Type of kernel, passed on to density.

which

Which simulation runs should be taken into account.

as.table

A logical flag that controls the order in which panels should be displayed.

...

Graphical parameters, see also xyplot, densityplot and histogram.

Details

The option which can restrict the output to certain simulation runs. In case of many simulations, this might improve the readability.

For type="kernel", the default, it plots a kernel density estimate for each of the chosen directions. In the case of type="histogram" the corresponding histograms. For type="angles" it plots the angles of the first chosen direction against all others. Whether the angles are given in degrees or radiants, depends on the value of angles.

Author(s)

Daniel Fischer, Klaus Nordhausen

See Also

xyplot, densityplot, histogram, density

Examples


library(tourr)
data(olive)
res <- EPPlab(olive[,3:10],PPalg="PSO",PPindex="KurtosisMin",n.simu=10, maxiter=20)

# Plot with kernel estimator
plot(res)

# Just the best 5 and then 8
plot(res,which=c(1:5,8))

# Plot as histogram
plot(res,type="histogram")

# Plot an angles plot
plot(res,type="angles")


fischuu/REPPlab documentation built on April 19, 2023, 9:52 a.m.