| plot.epplab | R Documentation |
The function offers three informative plots for an epplab object.
## S3 method for class 'epplab'
plot(x, type = "kernel", angles = "radiants",
kernel = "biweight", which = 1:10, as.table = TRUE, ...)
x |
Object of class |
type |
Type of plot, values are "kernel", "histogram" and "angles". |
angles |
Values are "degree" and "radiants", if |
kernel |
Type of kernel, passed on to |
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 |
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.
Daniel Fischer, Klaus Nordhausen
xyplot, densityplot,
histogram, density
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.