Learn R Programming

prim (version 1.0.5)

plot.prim: PRIM plot for multivariate data

Description

PRIM plot for multivariate data.

Usage

## bivariate
## S3 method for class 'prim':
plot(x, col, xlim, ylim, xlab, ylab, add=FALSE,
   add.legend=FALSE, cex.legend=1, pos.legend, lwd=1, ...)

## trivariate ## S3 method for class 'prim': plot(x, color, xlim, ylim, zlim, xlab, ylab, zlab, add.axis=TRUE, ...)

## d-variate ## S3 method for class 'prim': plot(x, col, xmin, xmax, xlab, ylab, ...)

Arguments

x
an object of class prim
add.legend
flag for adding legend (2-d plot)
pos.legend
(x,y) co-ordinates for leaned (2-d plot)
cex.legend
cex graphics parameter for legend (2-d plot)
col
vector of plotting colours, one for each box
xlab,ylab,zlab,xlim,ylim,zlim,add,lwd
usual graphics parameters
xmin,xmax
vector of minimum and maximum axis plotting values for scatter plot matrix
color
vector of colours, one for each box (3-d plot)
add.axis
flag for plotting axes (3-d plot)
...
other graphics parameters

Value

  • Plot of 2-dim PRIM is a set of nested rectangles. Plot of 3-dim PRIM is a scatter point cloud. Plot of d-dim PRIM is a scatter plot matrix. The scatter plots indicate which points belong to which box.

synopsis

## S3 method for class 'prim': plot(x, splom=TRUE, ...)

Details

Default colours are topo.colors(), with one colour per box in the PRIM box sequence.

References

Friedman, J.H. & Fisher, N.I. (1999) Bump-hunting for high dimensional data, Statistics and Computing, 9, 123--143.

See Also

prim.box

Examples

Run this code
## see ?prim.box

Run the code above in your browser using DataLab