screeplot.epplab {REPPlab} | R Documentation |
Creating a Screeplot for an epplab Object
Description
Plots the objective criteria of an epplab
object versus the
simulation runs.
Usage
## S3 method for class 'epplab'
screeplot(
x,
type = "lines",
which = 1:10,
main = "",
ylab = "Objective criterion",
xlab = "Simulation run",
...
)
Arguments
x |
Object of class |
type |
Type of screeplot, values are "barplot" and "lines" |
which |
Which simulation runs should be taken into account |
main |
Main title of the plot |
ylab |
Y-axis label |
xlab |
X-axis label |
... |
Graphical parameters, see also par() |
Details
The option which
can restrict the output to certain simulation runs.
In case of many simulations, this might improve the readability. The
barplot
option is often not meaningful, because the objective
criteria are usually large and bars begin by default at zero.
Author(s)
Daniel Fischer
Examples
library(tourr)
data(olive)
res <- EPPlab(olive[,3:10],PPalg="PSO",PPindex="KurtosisMin",n.simu=10, maxiter=20)
screeplot(res)
# Pretty useless:
screeplot(res,type="barplot")
screeplot(res,which=1:5)
[Package REPPlab version 0.9.6 Index]