Learn R Programming

delt (version 0.8.2)

plotparti: Draws a partition

Description

Draws the partition calculated with function "partition".

Usage

plotparti(pa, d1 = NULL, d2 = NULL, dendat = NULL, restri = NULL, pch = 21, support = pa$support, col = "black", cex.axis = 1)

Arguments

pa
partition; output of function "partition"
d1
integer 1,...,d; for the case the partition is a partition of a higher than 2 dimensional rectangle, "d1" is the first direction of the partition
d2
integer 1,...,d; for the case the partition is a partition of a higher than 2 dimensional rectangle, "d2" is the second direction of the partition
dendat
n*d data matrix; if given as an argument it will also be plotted
restri
internal
pch
symbol for plotting "dendat"; see function "points"
support
the bounds of the partition
col
color of the lines of the partition
cex.axis
magnification factor for the axis annotation; see "par"

Value

A plot at the graphics window

See Also

partition

Examples

Run this code
library(denpro)
dendat<-sim.data(n=100,seed=5,type="mulmodII")
et<-densplit(dendat)

pa<-partition(et)

plotparti(pa)

Run the code above in your browser using DataLab