Learn R Programming

Rambo (version 1.1.1)

plot.rsm: Plot an object from class rsm

Description

Produces plots describing results of an object from class rsm.

Usage

# S3 method for rsm
plot(x, frame=0, ...)

Arguments

x

An object of class rsm. Result of function rsm.

frame

An integer with possible values 0, 1, or 2, depending on the kind of graphics requested (see details).

...

Arguments to be passed to the function, such as graphical parameters.

Details

  • if frame=0 plot of the lower bound criterion versus the number of clusters and repartition of the found cluster in the different subgraphs.

  • if frame=1 plot of the lower bound criterion versus the number of clusters.

  • if frame=2 repartition of found clusters in the different subgraphs.

See Also

rsm, summary.rsm, RAMBO

Examples

Run this code
# NOT RUN {
data(Regions)
res <- rsm(Regions$X, Regions$sub, Klist=2:4, nbredo=1, maxit=5) 
##plot(res, frame=0)
## plot(res, frame=1)
 plot(res, frame=2)
# }

Run the code above in your browser using DataLab