Learn R Programming

REPPlab (version 0.9.6)

screeplot.epplab: Creating a Screeplot for an epplab Object

Description

Plots the objective criteria of an epplab object versus the simulation runs.

Usage

# S3 method for epplab
screeplot(
  x,
  type = "lines",
  which = 1:10,
  main = "",
  ylab = "Objective criterion",
  xlab = "Simulation run",
  ...
)

Arguments

x

Object of class epplab.

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()

Author

Daniel Fischer

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.

Examples

Run this code

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)

Run the code above in your browser using DataLab